0% Complete
0/0 Steps

Participants 0

      JavaScript Syntax

      JavaScript Values

      The JavaScript syntax defines two types of values: Fixed values and variable values.

      Fixed values are called literals. Variable values are called variables.

      JavaScript Literals

      The most important rules for writing fixed values are:

      Numbers are written with or without decimals:

      Strings are text, written within double or single quotes:

      JavaScript Variables

      In a programming language, variables are used to store data values.

      JavaScript uses the var keyword to declare variables.

      An equal sign is used to assign values to variables.

      In this example, x is defined as a variable. Then, x is assigned (given) the value 6:

      Welcome to the Digital Strategy Hub

      We are in beta and please email support @ centerfordigitalstrategy.com with any issues or features that would make your experience better.

      We have a feedback call to hear what would be most useful to you:

      Thursday April at 1 ET / 10am PT