JS Bits with Bill
JS Bits with Bill

JS Bits with Bill

Follow
Follow
homeTikTokInterviews
Tag

#codenewbies

#codenewbies

More content

Read more stories on Hashnode


Articles with this tag

Easy console.log() inside one liner functions

Nov 10, 20211 min read

Let's say we want to log obj inside this .map() function here: const arr = [ { val: 1 }, { val: 2 }, { val: 3 } ]; const nums = arr.map(obj =>...

Easy console.log() inside one liner functions

3 Uncommon but useful HTML elements

Oct 20, 20211 min read

1) <abbr> The abbreviation <abbr> element is used to represent an acronym or abbreviation. If you include a title attribute, the text will be display...

3 Uncommon but useful HTML elements

Element.classList.toggle()

Jul 27, 20201 min read

Here's a quick one! To add or remove a single class on an element you can use element.classList.add() and element.classList.remove(): // Add...

Element.classList.toggle()

Cleaner setTimeout Callbacks

Jul 19, 20201 min read

Sometimes I'll write some code that needs to be wrapped in a setTimeout: setTimeout(myFunc, 1000); If my function took any arguments, it would bum...

Cleaner setTimeout Callbacks