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 374 Share Facebook Twitter Pinterest WhatsApp 104 Created by Coding Artist Quiz #6 1 / 10 let letters = ['A', 'B', 'C', 'D', 'E'];console.log(letters.slice(-2));What will the above code output to the console? ['D', 'E'] ['E'] ['C', 'D', 'E'] ['A', 'B'] 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, 4, 3] [1, 2, 3] Throws An Error 3 / 10 let a = 2;let b = 3;a **= b;console.log(a);What will the above code output to the console? 12 8 6 18 4 / 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? 30 0 40 18 30 18 40 0 5 / 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 6 / 10 let arr = [10, 20, 30, 40];console.log(typeof arr);What will the above code output to the console? function array object null 7 / 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 8 / 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? 6 18 -1 -7 9 / 10 Which of the following is NOT a primitive data type in Javascript? boolean function undefined null 10 / 10 let a = "5  ";console.log(Number(a));What will the above code output to the console? NaN 5 5.0 Throws Error 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:twelve + twenty = Most Popular How to Create a Responsive Masonry Grid Gallery Using Pure CSS 30th May 2025 Build an Image Gallery with Search and Filter Using HTML, CSS, and JavaScript 28th May 2025 Fully Responsive Navigation Menu With Dropdown 26th May 2025 Build a Random Joke Generator with HTML, CSS & JavaScript 24th May 2025 Load more
Cool this was a fun quiz