arr.indexOf(‘cari-value’) // mencari value dalam array // output berupa index pertama yg ditemukan mulai dari index 0 // jika tidak ditemukan -1 // yang belum mengerti opsional arr.indexOf(searchElement[, fromIndex]) kalau <0 ga paham đ arr.includes(‘cari-value’) // mirip indexOf untuk mencari…
Month: April 2020
Coding Tip: Try to Code Without If-statements
Code from a Facebook project. Please donât sue them. Update: This article is now part of my book âLearn Coding with Modern JavaScriptâ. Read the updated version of it at jscomplete.com/no-ifs. When I teach beginners to program and present them with code…
10 Habits of Deeply Angry People
PrettySleepy on Pixabay One of my coworkers is the second angriest person Iâve ever known. He once threatened to burn down his bossâs house. Then he blamed his boss for reporting him to the police. My coworker said, âI was…
Marriage Wasnât Built to Survive Quarantine
Stress isnât a reflection of your relationship â your relationship is a reflection of unprecedented stress Photo source: Peopleimages/Getty Images The standard wedding vows are so often repeated in popular culture â TV shows, commercials, Tyler Perry movies â…
Jangan Buang Waktu! Fokus Hanya pada Hal Yang Bisa Kita Atur
Dalam ujian kita pasti menemukan ada soal susahnya dan ada soal bagian gampang. Maka dari itu kita perlu strategi supaya mendapatkan nilai yang bagus