JAVASCRIPT Flashcards
(206 cards)
Who originally developed JS?
Branden Eich.
What was JS originally called?
LiveScript
When was JS named JS? Why then?
LiveScript was renamed JavaScript in 1995, as it became a joint venture of Netscape and Sun.
Who standardized JS as ECMA-262?
The European Computer Manufacturers Association.
Is JS statically or dynamically typed?
Dynamically.
JS is solely a client side language.
False - it may be used server side as well.
Is JS case sensitive?
Yes.
What’s a synonym for dynamic typing?
Loose typing.
What is the root object in JS?
Object
What type of inheritance does JS exhibit?
Prototypal inheritance.
Is there polymorphism in JS?
No.
A web server is needed for JS.
False.
Write the html to import an external script.js file.
How can JS code be embedded into html?
<script> ... </script>
What are the ways to write comments in JS?
// …
/* … */
What JS object provides functions such as floor, round, max, min, etc?
Math
What are the 5 JS primitive types?
Number, String, Boolean, Undefined and Null.
Do the null type and the undefined type have several possible values?
No.
What is returned by an arithmetic operation that creates overflow?
NaN
What does (NaN == NaN) return?
False.
How should you check for NaN values?
isNaN(x)
What are the 4 ways of declaring a JS variable?
using var, let, const, or using nothing.
What operator coerces strings into numbers, and numbers into strings depending on the context?
+
List 2 ways of explicitly converting a number into a string.
Using the String constructor, or using a number’s toString() method.