🔥
CS1334
  • Introduction to Programming
  • Algorithm
  • RGB Colormode
  • HSB Colormode
  • Animation
  • Contrasting Concepts - Art
  • Geometric Transform Functions
    • Animation Using Transforms
  • Functions to Draw Characters
  • Functions to Draw Flowers
  • Bounding Box Conditional Branching
  • Canvas Border Constraints
  • Loops Using Math Formulas for Position
  • Finite State Machine
  • Arrays
  • KeyPress Logic
  • Time
  • Collision between objects
  • Buttons
  • Scene Management - State Variables
  • Project 3 - Animation Specification - FSM
  • Project 4 - Animation Logic
  • Project 5
  • Javascript Syntax
    • Variables
    • Indentifiers
    • Functions
    • Variable Scope: Global or Local
    • Logical Operators
    • Numerical Operator Shortcuts
    • Repetition - Loops
Powered by GitBook
On this page

Was this helpful?

  1. Javascript Syntax

Indentifiers

An identifier is a user defined name that can be used for user-created variables or functions, there are specific syntax rules for identifier names:

  • identifiers can only contain: letters, numbers, the underscore character _ or the dollar $ character.

  • identifiers must start with a letter, an underscore, or dollar-sign (not with a number)

  • identifiers cannot contain white-space or blank spaces

  • javascript is case-sensitive: myValue and Myvalue are not equivalent

PreviousVariablesNextFunctions

Last updated 5 years ago

Was this helpful?