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.148;let val = num.toFixed(2);console.log(val);What will the above code output to the console? 1.1 1.14 1 1.15 2 / 10 let nums = [1, 2, 3, 4];nums.map((num) => num * 2);console.log(nums);What will the above code output to the console? undefined [1, 2, 3, 4] [2, 4, 6, 8] Throws an error 3 / 10 let nums = [8, 3, 4, 6][8, 3, 4, 6];let vals = nums.filter((item) => item % 2 == 0);console.log(vals); [3] [8] [8, 4, 6] [8, 3, 4, 6] 4 / 10 console.log(mul(1, 3));var mul = (x, y) => { return x + y;};What will the above code output to the console? undefined 3 Throws type error Throws reference error 5 / 10 let num = 1.12345;let val = num.toFixed();console.log(val);What will the above code output to the console? 1 1.2 1.12345 1.1 6 / 10 console.log(add(5, 3));let add = (a, b) => { return a + b;};What will the above code output to the console? 8 Throws reference error undefined null 7 / 10 let a;function myFunction() { let a = 10; return a + 2;}console.log(a);What will the above code output to the console? 12 undefined null 10 8 / 10 console.log(add(5, 3));function add(a, b) { return a + b;}What will the above code output to the console? undefined Throws reference error 8 null 9 / 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); 4 12 3 2 10 / 10 let myDetails = { firstName: "Mitali", lastName: "J",};console.log(myDetails["lastName"]);What will the above code output to the console? Mitali J undefines Thrwos a reference error 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:3 × 5 = Most Popular Build a Random Joke Generator with HTML, CSS & JavaScript 24th May 2025 Build an Interactive Story Generator with HTML, CSS & JavaScript 23rd May 2025 Build a Flower Delivery Website with HTML, CSS & JavaScript | Bloomify UI Design Tutorial 🌸 23rd May 2025 Build a Stylish Calculator Using HTML, CSS, and JavaScript 21st May 2025 Load more