Contoh penggunaan URL API dan URL Search Params API untuk membuat Query String di dalam URL Http Request. Kemudian URL Query String yang telah dibuat tersebut dipakai untuk Http Request dengan menggunakan Fetch API . Tanpa menggunakan tambahan library.
-----------
Referensi :
https://developer.mozilla.org/en-US/docs/Web/API/URL
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
#javascripttips
-----------
Referensi :
https://developer.mozilla.org/en-US/docs/Web/API/URL
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
#javascripttips
Contoh implementasi tentang Autocomplete Input dengan Options, dengan menggunakan html tag Datalist.
Tapi kali ini dengan data array yang dinamis. Dengan JavaScript murni / Vanilla JS aja.
Dan yang pasti tanpa library tambahan dan tanpa jquery.
---
Referensi :
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist
#datalist #javascripttips
Tapi kali ini dengan data array yang dinamis. Dengan JavaScript murni / Vanilla JS aja.
Dan yang pasti tanpa library tambahan dan tanpa jquery.
---
Referensi :
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist
#datalist #javascripttips
Contoh fungsi mengecek urutan hari dalam tanggal tertentu, dalam waktu 1 tahun 365/366 hari
https://www.30secondsofcode.org/js/s/day-of-year/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
-
Contoh fungsi untuk melakukan pembulatan bilangan sebanyak n desimal di belakang koma
https://www.30secondsofcode.org/js/s/round
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
#javascripttips #javascript #tips
https://www.30secondsofcode.org/js/s/day-of-year/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
-
Contoh fungsi untuk melakukan pembulatan bilangan sebanyak n desimal di belakang koma
https://www.30secondsofcode.org/js/s/round
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
#javascripttips #javascript #tips
Semua fungsi callback di fs module telah menjadi Promise di Node JS 12.x LTS . Sehingga programming backend Node JS (Express JS, Adonis, Nest, Hapi,dst) untuk operasi baca tulis dengan fs module ini semakin enak dan mudah .
------
Docs
https://nodejs.org/api/fs.html
https://twitter.com/wesbos/status/1233031376032739330
#javascripttips #javascript #tips
------
Docs
https://nodejs.org/api/fs.html
https://twitter.com/wesbos/status/1233031376032739330
#javascripttips #javascript #tips
Menghapus karakter pertama atau karakter terakhir dalam suatu kata String, dengan fungsi Array.slice() di JavaScript .
---
Referensi dari Cheatsheet JavaScript di FlavioCopes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
#javascriptTips
---
Referensi dari Cheatsheet JavaScript di FlavioCopes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
#javascriptTips
Membagi suatu array menjadi dua sama panjang ataupun tepat di tengah, dengan menggunakan Math.ceil() dan Array.splice() di JavaScript .
----------------
Referensi dari Cheatsheet JavaScript di FlavioCopes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
#javascriptTips
----------------
Referensi dari Cheatsheet JavaScript di FlavioCopes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
#javascriptTips
Memisahkan string menjadi array atau menggabungkan array menjadi string, dengan fungsi String.split() dan Array.join()
---------------------
Referensi :
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
https://flaviocopes.com/how-to-cut-string-words-javascript/
#javascriptTips
---------------------
Referensi :
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
https://flaviocopes.com/how-to-cut-string-words-javascript/
#javascriptTips
Cara menghapus spasi di suatu kalimat dengan fungsi String.replace() dan RegExp
-------
Referensi dari JavaScript Tips Flavio Copes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
#javascriptTips #regex
-------
Referensi dari JavaScript Tips Flavio Copes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
#javascriptTips #regex
Cara menghapus spasi di suatu kalimat dengan fungsi String.replace() dan RegExp
-------
Referensi dari JavaScript Tips Flavio Copes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
#javascriptTips
-------
Referensi dari JavaScript Tips Flavio Copes
https://flaviocopes.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
#javascriptTips
Contoh penggunaan fitur ES2020 yaitu Nullish Coalescing dan Optional Chaining, pada pengambil object response data. Sudah bisa digunakan di TypeScript 3.7 , dan JavaScript sudah bisa juga dengan bantuan Babel JS .
------
Referensi lebih lanjut bisa cek ke MDN.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
#javascriptTips
------
Referensi lebih lanjut bisa cek ke MDN.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
#javascriptTips
Contoh penggunaan konversi Object ke bentuk data Array dengan Object.keys dan Object.values di Javascript dan TypeScript.
---
Sumber :
https://www.samanthaming.com/tidbits/76-converting-object-to-array
#javascriptTips #tips
---
Sumber :
https://www.samanthaming.com/tidbits/76-converting-object-to-array
#javascriptTips #tips