What does the ternary operator `condition ? a : b` evaluate to when condition is false? JavaScript ProfessionalEasy Try Now
What is the purpose of `Array.prototype.sort()` default behavior? JavaScript ProfessionalEasy Try Now
What is the purpose of `Array.prototype.indexOf()` vs `Array.prototype.findIndex()`? JavaScript ProfessionalEasy Try Now
What does `Array.prototype.findIndex()` return when no element matches the condition? JavaScript ProfessionalEasy Try Now
What is the output of the following? “`js const s = new Set([1, 2, 2, 3, 3, 3]); console.log([…s]); console.log(s.size); “` JavaScript DeveloperHard Try Now
What is the Revealing Module Pattern and what problem does it solve? JavaScript DeveloperHard Try Now
What is the output of the following? “`js const arr = [1, [2, [3, [4]]]]; console.log(arr.flat(Infinity)); “` JavaScript DeveloperHard Try Now
What is `Intl.NumberFormat` used for and what does `new Intl.NumberFormat(‘en-US’, {style:’currency’, currency:’USD’}).format(1234.56)` produce? JavaScript DeveloperHard Try Now