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 #7 ArenaQuiz Quiz #7 By Coding Artist 4th November 2022 0 389 Share Facebook Twitter Pinterest WhatsApp 94 Created by Coding Artist Quiz #7 1 / 10 let str = " I enjoy coding! ";console.log(str.trim());What will the above code output to the console? Ienjoycoding! I enjoy coding! I enjoy coding enjoy coding! 2 / 10 let myFunc = (x, y = 10) => { return x + y;};console.log(myFunc(5, true));What will the above code output to the console? 5true 6 15 5 3 / 10 let months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",];let myDate = new Date();myDate.setMonth(6);console.log(months[myDate.getMonth()]); May Jun Aug Jul 4 / 10 let num = Math.floor(Math.random() * 10);console.log(num);What will the above code output to the console? Returns a random integer from 0 to 10 Returns a random integer from 1 to 9 Returns a random integer from 1 to 10 Returns a random integer from 0 to 9 5 / 10 let months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",];let myDate = new Date();myDate.setMonth(12);console.log(months[myDate.getMonth(1)]); Jan Dec Nov Feb 6 / 10 let a = "1" + 1;let b = "1" - 1;console.log(a + b);What will the above code output to the console? 20 2 1111 110 7 / 10 let a = 15;let greeting = a % 2 == 0 ? "hello" : a % 4 == 0 ? "hi" : "bye";console.log(greeting);What will the above code output to the console? hi bye hello Throws an error 8 / 10 let nums = [78, 43, 3, 23, 5];nums.sort();nums.reverse();console.log(nums);What will the above code output to the console? [3, 5, 23, 43, 78] [78, 5, 43, 3, 23] [78, 43, 23, 5, 3] [23, 3, 43, 5, 78] 9 / 10 a = 5;var a;console.log(a);What will the above code output to the console? Reference Error Type Error Syntax Error 5 10 / 10 let nums1 = [10, 20, 30];let nums2 = [...nums1];nums1[1] = 40;console.log(nums2);What will the above code output to the console Throws An Error [10, 20, 30] [10, 40, 30] [40, 20, 30] Your score is The average score is 44% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizhtml quiz for beginnersjavascript advanced quizjavascript quizjavascript quiz for beginnersquizquiz bank Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 4/11/22Next articleImage Color Picker | 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:7 + five = Most Popular 3D Tilt Food Cards Using HTML, CSS & JavaScript 28th June 2025 Easy Copy to Clipboard Using HTML, CSS, and JavaScript 23rd June 2025 Creating Responsive Cards Without Media Queries Using CSS Grid 18th June 2025 Creating a Tinder-Style Swipe Card UI with HTML, CSS, and JavaScript 16th June 2025 Load more