5
console.count() logs the number of times that this particular call to count() ha...
source link: https://www.matuzo.at/til/til46/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
console.count() logs the number of times that this particular call to count() has been called.
This site is updating in the open
Things might look unstyled because they probably are.
console.count() logs the number of times that this particular call to count() has been called.
const letters = "availabilities".split("");
letters.forEach(letter => {
if (letter === 'i') {
console.count(`Letter ${letter}`)
}
})
/* Output:
Letter i: 1
Letter i: 2
Letter i: 3
Letter i: 4
*/
https://codepen.io/matuzo/pen/RwjgWQY?editors=0010
© 2019 - 2022
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK