Q1easyWhat will be the output of the following JavaScript code snippet?AundefinedBReferenceErrorC0D10Check AnswerReveal Answer & ExplanationDiscuss on Board
Q2easy(Code/Console Logic) What does the following Arrow Function return?AErrorBundefinedCnullD5Check AnswerReveal Answer & ExplanationDiscuss on Board
Q3easyWhat is the main difference between null and undefined in JavaScript?Anull is automatically assigned by JS; undefined is assigned by the developer.BThey are exactly the same.Cundefined means a variable has been declared but has no value; null is an assignment value representing "no value" or "empty."Dnull can only be used in objects.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q4easyWhat does the Destructuring Assignment allow you to do?ATo unpack values from arrays, or properties from objects, into distinct variables.BTo delete variables from memory.CTo change the object's prototype.DTo rename all keys in an object.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q5mediumWhich array method is used to iterate through all elements and filter them based on a condition?Afilter()Bsort()Creduce()DforEach()Check AnswerReveal Answer & ExplanationDiscuss on Board
Q6easyWhat is the result of 5 + 2 + "3" in JavaScript?A"73"B"523"C523D10Check AnswerReveal Answer & ExplanationDiscuss on Board
Q7mediumYou need to ensure a variable defined inside an if block cannot be accessed outside of it. Which keyword should you use?AvarBfunctionCglobalDletCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q8easyWhat is a Callback Function?AA global variable.BA function that is never called.CA function that calls itself (Recursion).DA function passed into another function as an argument, which is then invoked inside that outer function.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q9easyWhat is the purpose of the Spread Operator (...) in arrays?ATo join two arrays into one string.BTo expand an iterable (like an array) into individual elements.CTo delete the first element.DTo find the average of all numbers.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q10mediumYou want to trigger a function when a user clicks a button. Which is the correct approach?Abutton.onclick = clickFunction();Bbutton.onEvent('click', clickFunction);Cbutton.link(clickFunction);Dbutton.addEventListener('click', clickFunction);Check AnswerReveal Answer & ExplanationDiscuss on Board