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 #2 ArenaQuiz Quiz #2 By Coding Artist 22nd August 2022 0 516 Share Facebook Twitter Pinterest WhatsApp 143 Created on August 21, 2022 By Coding Artist Quiz #2 1 / 10 var myMonth = "1"; var month = myMonth === 0 ? "Jan" : myMonth === 1 ? "Feb" : myMonth === 2 ? "Mar : "NA"; console.log(month);What will the above code output to the console? Mar Feb NA Jan 2 / 10 let a = true + false + true * 5;console.log(a);What will the above code output to the console? 5 NaN 6 10 3 / 10 var myAr = [10, 20, 30, 40];var newMyAr = [0, ...myAr, 50];console.log(newMyAr); [0,[10, 20, 30, 40, 50] [0, 10, 20, 30, 40, 50] [0, [10, 20, 30, 40], 50] 4 / 10 let x, y;[x = 1, y = 3] = [5];console.log(x, y); 5 3 5 null 1 3 null 5 5 / 10 let a = null;let b = null;let c = a + b;console.log(c); null nullnull NaN 0 6 / 10 var p = 5;var q = p++;console.log(q);What will the above code output to the console? 6 null NaN 5 7 / 10 let a = Math.max();console.log(a);What will the above code output to the console? NaN -Infinity Infinity null 8 / 10 let x = Number("123abc");console.log(x);What will the above code output to the console? NaN 123 abc Throws Error 9 / 10 console.log(age);let age = "25";What will the above code output to console? Throws a reference error undefined null 25 10 / 10 function myFunc() { return [10, 20, 30];}[i, , j] = f1();console.log(i, j);What will the above code output to the console? 10 20 20 30 10 30 20 10 Your score is The average score is 37% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizcss basic quizcss fundamentals quizcss quizcss quiz bankjavascript advanced quizjavascript quizquiz Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 22/8/22Next articleRandom User Card Generator With Javascript 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:1 × 4 = Most Popular JavaScript Cheat Sheet – Free PDF Download 23rd May 2026 Build a Fun Balloon Pop Game Using HTML, CSS, and JavaScript 3rd July 2025 Build an Analog Clock with HTML, CSS, and JavaScript 3rd July 2025 Responsive Pricing Cards with Hover Effect Using HTML and CSS 2nd July 2025 Load more