JavaScript Test
English
Intermediate
Test the knowledge of JavaScript (JS) - programming language that conforms to the ECMAScript specification.
Description
Tags
30
Questions
30 sec
Per question
3:10
Average time
3.0
Contest Score
7
Participants
What is the correct declaration of a generator function?
It will be good to have a short description, what generator functions are, giving plain function syntax is not enough
Which is NOT a method fo Array?
Here you have a mistake: “of” not “fo”
What would be the result of 5+3+”8”?
correct answer is a string“88” not number 88. Explanation is correct, but answer is wrong
Which keywords are used to handle exceptions?
The way you put “all of these” as a separate answer is misleading. I would personally specify like:
should be all of these: try, catch, finally.
Same comment relates to all questions with “all of these” as an answer
Which operator can NOT be used in JavaScript?
you cannot use ?: as an operator, you can use it in ternary “condition ? true : false”, but all together not
Which attribute makes graphical elements invisible?
Not sure if it’s related to Javascript, and also not “visibilty”, but “visibility”?
Which of the following Array methods calls a function for each element in the array?
Where filter() also calls a function (predicate) for each element in array. So maybe remove filter, and substitute with something else?
arr.filter(callbackFn)
Conclusion:
It will be good to have separate questions related to apply / bind / call. Also recheck correct answers and add more details to some of the questions I pointed out.
All in all, it’s a good start, and there is something to improve!