LiveEdu Quiz of the Day: 28/12/2016

Read Time:43 Second

javascript-quiz-of-the-day

Answer:

C) 8

All JavaScript variables must be identified with unique names. These unique names are called identifiers.

Identifiers can be short names (like x and y) or more descriptive names (age, sum, totalVolume).

The general rules for constructing names for variables (unique identifiers) are:

  • Names can contain letters, digits, underscores, and dollar signs;
  • Names must begin with a letter;
  • Names can also begin with $ and _;
  • Names are case sensitive (y and Y are different variables);
  • Reserved words (like JavaScript keywords) cannot be used as names.

In JavaScript, the equal sign (=) is an “assignment” operator, not an “equal to” operator. This is different from algebra.

If you want to explore more, visit our JavaScript edu & tutorials section!

Below are some examples:

Trading system with AI in JavaScript

Javascript Canvas stuff

Source: https://educationecosystem.com/blog/liveedu-quiz-day-javascript-28122016/


You might also like this video