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 #1 | Javascript Quiz ArenaQuiz Quiz #1 | Javascript Quiz By Coding Artist 2nd August 2022 0 764 Share Facebook Twitter Pinterest WhatsApp 0% 225 Quiz #1 1 / 10 var arr = [1, 2, 3, 4, 5];var arr1 = arr;arr1.push(6);console.log(arr); [6] [1, 2, 3, 4, 5] [1,2,3,4,5,6] 2 / 10 console.log(dog);var dog = "Daisy";What will the above code output to console? undefined Console throws a reference error null Daisy Nope! That wasn't the right answer Yippie! You got it right. 3 / 10 let p, q;[p, q] = [1];console.log(p, q); Throws SyntaxError undefined 1 1 undefined 1 1 4 / 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] 5 / 10 greet();function greet() { console.log("Hello");}function greet() { console.log("Hi");}What will the above code output to the console? Hi Hello Throws Reference Error Undefined 6 / 10 console.log(null && 45);What will the above code output to the console? true null 45 false 7 / 10 var a = [1, 2];var b = [3, 4];var c = [...a, ...b];console.log(c); [1234] [[1,2],[3,4]] [1,2,3,4] 8 / 10 let myFunc = function () { console.log("hello 1");};let myFunc = function () { console.log("hello 2");};myFunc(); hello 1 hello 2 Throws Reference Error Throws SyntaxError 9 / 10 if ( null || [ ] ) { console.log("Hello World");}What will the above code output to the console? No Output Hello World 10 / 10 var arr = [1, 2, 3, 4, 5];var arr1 = [...arr];arr1.push(6);console.log(arr); [1,2,3,4,5,6] [6] [1, 2, 3, 4, 5] Your score is The average score is 45% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizcss basic quizcss beginners quizcss fundamentals quizjavascriptjavascript MCQjavascript quizjavascript testquiz Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 2/8/22Next articleFlashcard App 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:5 + ten = Most Popular Image Gallery with Lightbox Effect Using HTML, CSS, and JavaScript 20th December 2024 Build a Draggable and Sortable Grid with HTML, CSS, and JavaScript Introduction 16th December 2024 3D Button With HTML, CSS & Javascript 13th December 2024 Create a Digital Clock with a 24-Hour/12-Hour Format Switcher 9th December 2024 Load more