Q11easyWhat does the JSON.stringify() method do?AFormats the code for better readability.BSaves a file to the user's hard drive.CParses a string into a JSON object.DConverts a JavaScript object or value into a JSON string.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q12easyWhat is a Closure in JavaScript?AA function that remembers the variables from its lexical scope, even when the function is executed outside that scope.BA way to delete all functions in a script.CA function that cannot be called from the global scope.DA type of loop.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q13easyWhat does the following code demonstrate? script.jsASynchronous execution.BAsynchronous execution with async/await syntax.CA compilation error.DBlocking I/O.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q14easyWhat is the result of ![] in JavaScript?AErrorBundefinedCfalseDtrueCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q15easyWhat is a Promise in JavaScript?AA way to bypass CSS rules.BA variable that is guaranteed to change.CA function that runs immediately.DAn object representing the eventual completion (or failure) of an asynchronous operation.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q16mediumJavaScript is Single-Threaded. How does it handle long-running operations like API requests without freezing the UI?AUsing the Event Loop and asynchronous callbacks (Promises/async-await).BBy killing the process and restarting it.CIt cannot handle long-running operations.DBy opening new CPU cores.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q17easyWhat is the output of typeof null?A"number"B"undefined"C"null"D"object"Check AnswerReveal Answer & ExplanationDiscuss on Board