Test Your Knowledge
Are JavaScript functions and variable names case-sensitive or case-insensitive?
How can you write a function that accepts and processes an unlimited number of parameters?
Name a way to return multiple values from a function.
When defining a class, what keyword is used to refer to the current object?
Do all the methods of a class have to be defined within the class definition?
What keyword is used to create an object?
How can a property or method be made available to all objects in a class without replicating the property or method within the object?
How can you create a multidimensional array?
What syntax is used to create an associative array?
Write a statement to sort an array of numbers in descending numerical order.
See Chapter 15 Answers in Appendix A for the answers to these questions.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access