⚡ Each correct answer carries +1 mark and each wrong answer carries -0.25 negative marking.
Which keyword is used to declare a variable with block scope in JavaScript?
Which JavaScript keyword is used to declare a constant variable?
What is the correct syntax to define a function in JavaScript?
Which statement is used to return a value from a function?
How do you call a function named myFunction in JavaScript?
Which JavaScript event occurs when a button is clicked?
Which event is triggered when a page finishes loading?
Which JavaScript dialog box is used to show a warning message?
Which dialog box returns true or false based on user action?
Which dialog box is used to take input from the user?
Which JavaScript operator is used to compare both value and type?
Which loop executes at least once even if the condition is false?
Which JavaScript statement is used to stop a loop?
Which keyword is used to skip the current iteration of a loop?
What will typeof null return in JavaScript?
Which event is triggered when the user submits a form?
Which method is used to convert a string to an integer?
Which symbol is used for single-line comments in JavaScript?
Which JavaScript object is used to work with dates?
Which function is used to check whether a value is NaN?
Which keyword is used to define a JavaScript function parameter?
What is the default return value of a JavaScript function if no return statement is used?
Which event occurs when an input field loses focus?
Which event is triggered when the value of an input field changes?
Which JavaScript method is used to access an HTML element by its ID?
Which object is the top-level object in JavaScript?
Which JavaScript function converts a string to a floating-point number?
Which symbol is used to create an object in JavaScript?
Which method displays a message and waits for user input?
Which JavaScript keyword is used to handle exceptions?