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 299 Share Facebook Twitter Pinterest WhatsApp 77 Created by Coding Artist Quiz #9 1 / 10 let a;function myFunction() { let a = 10; return a + 2;}console.log(a);What will the above code output to the console? undefined 10 12 null 2 / 10 let nums = [8, 3, 4, 6][8, 3, 4, 6];let vals = nums.filter((item) => item % 2 == 0);console.log(vals); [8] [8, 4, 6] [8, 3, 4, 6] [3] 3 / 10 let num = 1.12345;let val = num.toFixed();console.log(val);What will the above code output to the console? 1 1.1 1.12345 1.2 4 / 10 console.log(add(5, 3));function add(a, b) { return a + b;}What will the above code output to the console? Throws reference error undefined null 8 5 / 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 3 undefined Throws reference error 6 / 10 let nums = [1, 2, 3, 4];nums.map((num) => num * 2);console.log(nums);What will the above code output to the console? [2, 4, 6, 8] [1, 2, 3, 4] undefined Throws an error 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.14 1.15 1.1 8 / 10 let myDetails = { firstName: "Mitali", lastName: "J",};console.log(myDetails["lastName"]);What will the above code output to the console? undefines Mitali J Thrwos a reference error 9 / 10 console.log(add(5, 3));let add = (a, b) => { return a + b;};What will the above code output to the console? null undefined 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); 12 4 2 3 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:8 − 5 = Most Popular Build a Random Riddle Generator with HTML, CSS, and JavaScript 21st February 2025 💌 Create a Custom Greeting Card Maker with HTML, CSS, and JavaScript 17th February 2025 Create a Fun Fortune Cookie App with HTML, CSS, and JavaScript 14th February 2025 Creating a 5-Star Rating System with HTML, CSS, and JavaScript 12th February 2025 Load more