days
0
3
hours
1
3
minutes
3
5
seconds
2
3
search
Trivial pursuit

How well do you know your JavaScript trivia?

Jane Elizabeth
trivia
© Shutterstock / Frazao

Our programming pub quiz series is back. This week, we’re testing your knowledge about JavaScript. Do you know everything there is to know about this old favorite?

As of May of this year, roughly 95% of the 10 million most popular webpages use JavaScript. That’s pretty darn good any programming language. This long-standing favorite is over 20 years old and showing no signs of age, even if it does have a few quirks. 

Let’s get down to business and test your knowledge of JavaScript trivia!

1.  Who created JavaScript?
a) Microsoft
b) Sun Microsystems
c) Oracle
d) Netscape

2.  How long did Brendan Eich take to write the JavaScript programming language?
a) 10 days
b) 2 weeks
c) 2 months
d) 10 months

3.  JavaScript wasn’t always called that. What other names has it been released under?
a) Latte
b) Mocha
c) LiveScript
d) BScript
e) Spidermonkey

4.  JavaScript and Java are basically the same.
a) Yes
b) No

SEE MORE: JavaScript as a smart contract language

5.  Is JavaScript a front-end, back-end, or full-stack programming language?
a) Front-end
b) Back-end
c) Full-stack

6.  Is JavaScript dynamically typed or statically typed?
a) Dynamic
b) Static

7.  Null is an object, yes or no?
a) Yes
b) No

8. Which of the following is not a reserved word in JavaScript?
a) default
b) finally
c) throw
d) undefined

 

SEE MORE: Is Java bad for beginners? Stanford thinks so

Answers:

1.  d) Netscape. While Oracle holds the trademark, JavaScript was originally created by Netscape Navigator as an alternative to Java in 1995.

2.  a) 10 days! Brendan Eich created the first version in ten days in order to accommodate the Navigator 2.0 Beta release schedule. And now it’s one of the most popular scripting languages in the world. Talk about grace under pressure!

3.  b) Mocha and c) LiveScript. The first version was originally released as Mocha. It was renamed LiveScript in September 1995 before finally arriving on JavaScript in the same month, possibly as a marketing ploy to grab some of Java’s fame.

4. b.) No. Despite the name, Java and JavaScript have way more differences than similarities. Java has static typing, while JavaScript’s typing is dynamic. Java’s objects are class-based, while JavaScript’s are prototype-based. Finally, Java did not support functional programming until Java 8, while JavaScript has done so from the beginning, being influenced by Scheme.

5.  c) Full-stack. JavaScript can be used as both a front-end and back-end programming language. Thanks, Node.js!

6.  a) Dynamic. As with most scripting languages, JavaScript is dynamically typed; a type is associated with each value, rather than just with each expression. In fact, JavaScript supports various ways to test the type of an object, including duck typing.

7.  a) Yes. Null is an object. Yeah, I know.

8.  d) undefined. Weirdly enough, undefined isn’t defined in JavaScript. Which leads to fun.

 

Results:

How well did you do? Do you know your JavaScript trivia?

0-3 correct: You’re just a JavaScript beginner. Time to go through a comprehensive tutorial on JavaScript and do a bit more studying.

4-5 correct: You’re pretty solid in your JavaScript trivia, but you still might need to pay a little more attention to the details.

6-7 correct: Nice! You really know your stuff!

8 correct: You are a JavaScript master.

Programming Pub Quiz

Have you tried our other pub quizzes? Test your knowledge of other programming languages!

buy your tickets asap

Author
Jane Elizabeth
Jane Elizabeth is an assistant editor for JAXenter.com

Comments
comments powered by Disqus