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 #9 ArenaQuiz Quiz #9 By Coding Artist 5th December 2022 0 309 Share Facebook Twitter Pinterest WhatsApp 78 Created by Coding Artist Quiz #9 1 / 10 let num = 1.12345;let val = num.toFixed();console.log(val);What will the above code output to the console? 1 1.12345 1.1 1.2 2 / 10 let myDetails = { firstName: "Mitali", lastName: "J",};console.log(myDetails["lastName"]);What will the above code output to the console? Mitali Thrwos a reference error undefines J 3 / 10 console.log(add(5, 3));let add = (a, b) => { return a + b;};What will the above code output to the console? null 8 undefined Throws reference error 4 / 10 console.log(mul(1, 3));var mul = (x, y) => { return x + y;};What will the above code output to the console? Throws type error undefined Throws reference error 3 5 / 10 let nums = [1, 2, 3, 4];nums.map((num) => num * 2);console.log(nums);What will the above code output to the console? Throws an error [2, 4, 6, 8] [1, 2, 3, 4] undefined 6 / 10 let nums = [8, 3, 4, 6][8, 3, 4, 6];let vals = nums.filter((item) => item % 2 == 0);console.log(vals); [8] [3] [8, 3, 4, 6] [8, 4, 6] 7 / 10 let num = 1.148;let val = num.toFixed(2);console.log(val);What will the above code output to the console? 1 1.15 1.14 1.1 8 / 10 let a;function myFunction() { let a = 10; return a + 2;}console.log(a);What will the above code output to the console? null 12 undefined 10 9 / 10 console.log(add(5, 3));function add(a, b) { return a + b;}What will the above code output to the console? undefined null 8 Throws reference error 10 / 10 let nums = [2, 3, 4, 3];let len = nums.length;let value = nums.reduce((res, item) => { return res + item; }, 0) / len;console.log(value); 3 4 12 2 Your score is The average score is 44% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizjavascript quesion bankjavascript quiz bankjs quiz bank Share Facebook Twitter Pinterest WhatsApp Previous article25 Latest Javascript Projects | Part 1Next articleMCQ – 6/12/22 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:seventeen − nine = Most Popular 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 Flashlight Effect With HTML, CSS and Javascript 1st July 2025 Load more