Which keyword is used to declare a variable that cannot be reassigned?, var, let, const, static, What is the output of the following code? console.log(typeof "Hello");, text, Object, String, string, Which symbol is used for strict equality in JavaScript?, =, ==, ===, !=, What is the correct way to write a function?, function myFunction() {}, create myFunction() {}, def myFunction() {}, func myFunction() {}, What is the result of this expression? 2 + "2", 4, "22", undefined, NaN, Which method adds a new element to the end of an array?, push(), pop(), shift(), add(), What does the pop() method do?, Adds an element to the beginning of an array, Removes the last element of an array, Removes the first element of an array, Sorts an array, Which loop is commonly used to iterate over the values of an array?, for...in, for...of, repeat...until, loop...each, What is the output?let x = 10;if (x > 5) { console.log("Yes");} else { console.log("No");}, No, Yes, true, An error, Which operator means “OR” in JavaScript?, &&, ||, !, ??, What is the purpose of JSON.parse()?, Converts a JavaScript object into a JSON string, Converts a JSON string into a JavaScript object, Deletes JSON data, Creates an array, Which method converts a JavaScript object into a JSON string?, JSON.convert(), JSON.parse(), JSON.stringify(), JSON.object(), What is the output? console.log([1, 2, 3].length);, 2, 3, 4, undefined, Which keyword is used to handle errors?, try...catch, check...error, error...handle, test...catch, What does document.getElementById() do?, Creates a new HTML element, Selects an HTML element by its ID, Deletes an HTML element, Changes the page title
0%
JavaScript
Share
Share
by
Narmatovaaigeri
Edit Content
Save
Like
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Quiz
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
Open results
Copy link
QR code
Delete
Continue editing:
?