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 #10 ArenaQuiz Quiz #10 By Coding Artist 2nd January 2023 0 652 Share Facebook Twitter Pinterest WhatsApp 197 Created by Coding Artist Quiz #10 1 / 10 let num = 1.148;let val = num.toFixed(6);console.log(val);What will the above code output to the console? 1.2 1.148 1.1 1.148000 2 / 10 var arr = [1, 2, 3, 4];var res = arr.map(function (a, i) { return "a";});console.log(res);What will the above code output to the console? [1, 2, 3, 4] [1a, 2a, 3a, 4a] [a, a, a, a] ['a', 'a', 'a', 'a'] 3 / 10 var a = 10;var a = 20;console.log(a);What will the above code output to the console? 1020 Throws an Error 10 20 4 / 10 if ([] || false) { console.log("Hi");}What will above code output to the console? Throws an error No Output Hi null 5 / 10 if (null)console.log("Hello World");console.log("Hi");What will the above code output to the console? No Output Throws an Error Hello World Hi 6 / 10 let person = { name: "Mitali", a: 26,};var a = "name";console.log(person[a]);What will the above code output to the console? 26 age Mitali name 7 / 10 let person = { name: "Mitali", a: 26,};var a = "name";console.log(person["a"]);What will the above code output to the console? age name 26 Mitali 8 / 10 let arr = [10, 20, 30, 40, 50];console.log(arr[arr.length]);What will the above code output to the console? 5 50 undefined Throws an error 9 / 10 console.log([] && false);What will the above code output to the console? [] null Throws an error false 10 / 10 let student = { name: "Jim", age: 12, score: 80,};console.log(Object.values(student)); 'Jim', 12, 80 name, age, score [name, age, score] ['Jim', 12, 80] Your score is The average score is 44% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizjavascript quizjavascript quiz for beginnersquizquiz app javascriptquiz bank Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 1/1/23Next articleGet File Name From File Input 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:one × four = 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