Variable Names
Variables 1
Intro to JS 1
Conditionals
Potpourri
100

With this standard convention, you group words into one, the first word is lowercase, then every word that follows will have its first letter uppercased. Example: jeopardyIsFun

Camel Casing

100

This keyword added in the ES6 iteration of JS signals a declared variable that can be reassigned with a different value

let

100

This programming language is primarily known as the language of most modern web browsers.

JavaScript

100

Fill in the blank. A _______  _______ checks a specific condition(s) and performs a task based on the condition(s).

Conditional Statement

100

JavaScript was created in this year.

1995

200

= is the ________ operator

Assignment

200

True or False. With var and let we can declare a value without assigning the variable a value.

True

200

Data is printed, or logged, to the console (a panel that displays messages) with this code.

console.log()

200

Fill in the blank. When using the logical _____ operator, both conditions must evaluate to true for the entire condition to evaluate to true and execute.

&&

200

This is how long it took to create JavaScript.

10 days

300

True or false. The variable jeopardyIsFun would reference the same memory location as jeopardyISfun

False. Variable names are case sensitive.

300

This is output of the code shown below.

17

300

We can write single-line comments with _____ and multi-line comments between ____ and _____

 //      /* and  */

300

We can use this to simplify an if...else statement. An example of the syntax is seen here: (condition) ? value1:value2

Ternary operator

300
This is what JavaScript was first known as. 

Mocha.

400

True or False. "const" could be a legitimate variable name

False. Variable names cannot be the same as JavaScript keywords

400

This would be the output of running this code:

TypeError: Assignment to constant variable.

400

The remainder operator is sometimes called ________.

Modulo

400

The list of these types of values includes: 

  • 0
  • Empty strings like "" or ''
  • null which represent when there is no value at all
  • undefined which represent when a declared variable lacks a value
  • NaN, or Not a Number

falsy

400

This is the person that created JavaScript.

Brendan Eich

500

Fill in the blank. One of the biggest benefits to using ____  ____ is the readability of the code. Using ____ and  expressions surrounded by ____ you can more easily tell what the new string will be. You also don’t have to worry about escaping double quotes or single quotes.

Template Literals. Syntax uses backticks ` and ${} 

500

If you try to declare a const variable without a value, you’ll get this type of error.

SyntaxError

500

Tell us the code you would use to generate a random integer (whole number) between 0-49.

Hint: Part of the solution uses a built-in method that rounds decimals down to the nearest whole number.

Math.floor(Math.random() * 50)

500

In the context of Switch Statements, The ______ keyword tells the computer to exit the block and not execute any more code or check any other cases inside the code block.

Break

500

What is the output?

genbuzz

What if we assigned myNumber the value 'eleven'?

What if we assigned myNumber the value 50?