Sign in Welcome! Log into your account your username your password Forgot your password? Get help Password recovery Recover your password your email A password will be e-mailed to you. HomeArenaQuiz #8 ArenaMCQ Quiz #8 By Coding Artist 13th November 2022 0 296 Share Facebook Twitter Pinterest WhatsApp 108 Created by Coding Artist Quiz #8 1 / 10 let a = "1";let b = true;console.log(a == b);What will the above code output to the console? true false 2 / 10 let a = 1;let b = "true";console.log(a == b);What will the above code output to the console? true false 3 / 10 let arr = [1, 2, 3, 4];let len = arr.length;console.log(arr[len]); undefined 4 NaN null 4 / 10 let a = "1" - "greet";if (a == true) { console.log("Hey");} else if (a == false) { console.log("Hello");} else { console.log("Goodbye");}What will the above code output to the console? Throws an error Hello Goodbye Hey 5 / 10 let a;let b;console.log(a + b);a = 5;b = 6;What will the above code output to the console? 11 Throws an error NaN undefined 6 / 10 let myDetails = {    firstName: "Mitali",    lastName: "J",};console.log(myDetails[firstName]);What will the above code output to the console? undefined J Mitali Throws reference error 7 / 10 let x = null;let y = 4;console.log(x || y);What will the above code output to the console? null true 4 false 8 / 10 let a = 10;a = "hello";console.log(typeof a);What will the above code output to the console? throws error number string object 9 / 10 let x = 5;let y = 4;console.log(5 || 4);What will the above code output to the console? 5 false 4 true 10 / 10 let x = 5;let y = 4;console.log(5 && 4);What will the above code output the console? true 5 4 false Your score is The average score is 44% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizhtml quiz for beginnersintermediate javascript quizjavascript quizjavascript quiz bankjavascript quiz for beginnersjs quiz bankquizquiz bank Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 12/11/22Next articleStyle Broken Images With CSS Coding Artist RELATED ARTICLES Arena Javascript Quiz For Intermediates 24th July 2023 Arena Javascript Quiz For Beginners 16th July 2023 Arena MCQ – 10/2/23 10th February 2023 LEAVE A REPLY Cancel reply Comment: Please enter your comment! Name:* Please enter your name here Email:* You have entered an incorrect email address! Please enter your email address here Website: Save my name, email, and website in this browser for the next time I comment. Please enter an answer in digits:six − 2 = Most Popular 5 Creative Things You Can Do with ::before and ::after in CSS 20th June 2025 How to Create a Responsive Multi-Level Dropdown Menu Using HTML & CSS 2nd June 2025 Build an Image Gallery with Search and Filter Using HTML, CSS, and JavaScript 28th May 2025 Build a Random Joke Generator with HTML, CSS & JavaScript 24th May 2025 Load more