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 #6 ArenaQuiz Quiz #6 By Coding Artist 21st October 2022 0 370 Share Facebook Twitter Pinterest WhatsApp 104 Created by Coding Artist Quiz #6 1 / 10 let a = 10 + 10 * 2;let b = 10 * 2 - 2;console.log(a, b);What would the above code snippet output to the console? 40 0 40 18 30 18 30 0 2 / 10 let a = new String("Coding");let b = new String("Coding");console.log(a == b);What will the above code output to the console? true false 3 / 10 let arr = [10, 20, 30, 40];console.log(typeof arr);What will the above code output to the console? null array function object 4 / 10 let arr1 = [1, 2, 3];let arr2 = arr1;arr1[1] = 4;console.log(arr2);What will the above code output to the console? Throws An Error [1, 2, 3] [1, 4, 3] [4, 2, 3] 5 / 10 let a = "5 ";console.log(Number(a));What will the above code output to the console? Throws Error 5 5.0 NaN 6 / 10 let myStr = "I enjoy Coding. Coding is Fun";console.log(myStr.search("Coding"));What will the above code output to the console? 11 true 8 false 7 / 10 Which of the following is NOT a primitive data type in Javascript? null boolean function undefined 8 / 10 let a = 2;let b = 3;a **= b;console.log(a);What will the above code output to the console? 8 6 12 18 9 / 10 let letters = ['A', 'B', 'C', 'D', 'E'];console.log(letters.slice(-2));What will the above code output to the console? ['C', 'D', 'E'] ['D', 'E'] ['A', 'B'] ['E'] 10 / 10 let myStr = "Let's search this string.";let foundStr = myStr.lastIndexOf("S");console.log(foundStr);What will the above code output to the console? -7 -1 18 6 Your score is The average score is 44% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Tagscss advanced quizhtml quizjavascript advanced quizjavascript quizjavascript quiz for beginners Share Facebook Twitter Pinterest WhatsApp Previous articleMCQ – 21/10/22Next articleFireworks On Click | Javascript & Canvas 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 1 COMMENT Cool this was a fun quiz Reply 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:four × four = Most Popular How to Create a Hide-On-Scroll Navbar with CSS and JavaScript 7th May 2025 Build a Fun ‘You vs Computer’ Game with HTML, CSS & JS 5th May 2025 Build a Custom Ice Cream Maker Using HTML, CSS, and JavaScript 2nd May 2025 Mini Date & Time Neumorphism UI — A Simple & Stylish Project 30th April 2025 Load more
Cool this was a fun quiz