Javascript Quizzes You Can't Solve

untilyou58

Đặng Đình Sáng

Posted on July 1, 2024

Javascript Quizzes You Can't Solve

Q1

console.log(018 - 015);
console.log("018" - "015");
Enter fullscreen mode Exit fullscreen mode

Q2

const isTrue = true == []; 
const isFalse = true == ![]; 

console.log ( isTrue + isFalse);
Enter fullscreen mode Exit fullscreen mode

Q3

console.log(3 > 2 > 1);
Enter fullscreen mode Exit fullscreen mode

Q4

console.log(typeof typeof 1);
Enter fullscreen mode Exit fullscreen mode

Q5

console.log(('b' + 'a' + + 'a' + 'a').toLowerCase());
Enter fullscreen mode Exit fullscreen mode

Q6

console.log(typeof NaN);
Enter fullscreen mode Exit fullscreen mode

Q7

console.log(0.1 + 0.2 == 0.3);
Enter fullscreen mode Exit fullscreen mode

Q8

const numbers = [33, 2, 8];
numbers.sort();
console.log(numbers[1])
Enter fullscreen mode Exit fullscreen mode

Conclusion

What percentage of the eight questions were correct?
If you get all of them right, please leave a comment!

Ref

💖 💪 🙅 🚩
untilyou58
Đặng Đình Sáng

Posted on July 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related