Skip to main content
Documentation
About FAQ Projects GitHub
Examples
Blinky Animation Shaker Juggle Counter Energy Glove Dice Level Counter Egg game Reaction Photon beatbox Spin it Metronome Beat visualizer Fireflies
Courses
Maker Using the Pins Logic Lab
Reference
input light music network pins control console
Blocks
On Start
Loops
repeat for while for of
Logic
if Boolean
Variables
assign change var var
Math JavaScript blocks Custom blocks
Python
Calling Sequencing Variables Operators Statements Functions Classes
JavaScript
Calling Sequencing Variables Operators Statements Functions Types Classes Interfaces Generics
Types
Number String Boolean Array Function
Miscellaneous
About Support Translate Sharing projects Offline support Save
Developers
Command Line Interface Visual Studio Code support Blocks Embed
Projects
Magic Wand Dandelion Fidget Spinner Watch Timer Lucky Wheel Headlamp Guitar Hot Potato Light Monster Reaction! Wearable NeoPixels Fabric Friend
Hardware
Simulator USB
DocsJavaScriptStatements
Documentation
About FAQ Projects GitHub
Examples
Blinky Animation Shaker Juggle Counter Energy Glove Dice Level Counter Egg game Reaction Photon beatbox Spin it Metronome Beat visualizer Fireflies
Courses
Maker Using the Pins Logic Lab
Reference
input light music network pins control console
Blocks
On Start
Loops
repeat for while for of
Logic
if Boolean
Variables
assign change var var
Math JavaScript blocks Custom blocks
Python
Calling Sequencing Variables Operators Statements Functions Classes
JavaScript
Calling Sequencing Variables Operators Statements Functions Types Classes Interfaces Generics
Types
Number String Boolean Array Function
Miscellaneous
About Support Translate Sharing projects Offline support Save
Developers
Command Line Interface Visual Studio Code support Blocks Embed
Projects
Magic Wand Dandelion Fidget Spinner Watch Timer Lucky Wheel Headlamp Guitar Hot Potato Light Monster Reaction! Wearable NeoPixels Fabric Friend
Hardware
Simulator USB
DocsJavaScriptStatements

Statements

The following JavaScript statements are supported for the Adafruit Circuit Playground Express:

Variable declarations

  • const statement
  • let statement

Block-structured statements

  • { } block statement
  • if-else conditional statement
  • while loop
  • do-while loop
  • for(;;) loop
  • switch statement (on numbers only)

Control-flow commands

  • break statement
  • continue statement
  • return statement
  • debugger statement for breakpoints

Labeling statements

  • label: statement
  • default statement

Edit this page on GitHub
Edit template of this page on GitHub
Edit template of this page on GitHub

Privacy & Cookies Terms Of Use Trademarks
© 2019 Microsoft
Powered by Microsoft MakeCode