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 376 Share Facebook Twitter Pinterest WhatsApp 105 Created by Coding Artist Quiz #6 1 / 10 let a = 2;let b = 3;a **= b;console.log(a);What will the above code output to the console? 6 12 8 18 2 / 10 let arr1 = [1, 2, 3];let arr2 = arr1;arr1[1] = 4;console.log(arr2);What will the above code output to the console? [4, 2, 3] [1, 2, 3] Throws An Error [1, 4, 3] 3 / 10 let arr = [10, 20, 30, 40];console.log(typeof arr);What will the above code output to the console? object null array function 4 / 10 let letters = ['A', 'B', 'C', 'D', 'E'];console.log(letters.slice(-2));What will the above code output to the console? ['A', 'B'] ['E'] ['C', 'D', 'E'] ['D', 'E'] 5 / 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 18 30 18 30 0 40 0 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 8 true false 7 / 10 Which of the following is NOT a primitive data type in Javascript? boolean null function undefined 8 / 10 let a = new String("Coding");let b = new String("Coding");console.log(a == b);What will the above code output to the console? false true 9 / 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? 18 -1 -7 6 10 / 10 let a = "5  ";console.log(Number(a));What will the above code output to the console? NaN 5.0 Throws Error 5 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:eight − four = Most Popular 5 Creative Things You Can Do with ::before and ::after in CSS 20th June 2025 How to Create a Responsive Multi-Level Dropdown Menu Using HTML & CSS 2nd June 2025 Build an Image Gallery with Search and Filter Using HTML, CSS, and JavaScript 28th May 2025 Build a Random Joke Generator with HTML, CSS & JavaScript 24th May 2025 Load more
Cool this was a fun quiz