Skip to main content
Documentation
About FAQ Projects GitHub
Reference
sprites controller game music scene info images
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 Image Sprite
Blocks Gallery
Hardware
Errors Adding New Board Raspberry Pi Makey Makey Dev Debug connector
Miscellaneous
About Support Translate Sharing projects Offline support Save
Developers
Command Line Interface Visual Studio Code support Blocks Embed
Lessons
Cherry Pickr Barrel Dodger Dance Party BlockOut
Courses
CS Intro 1 CS Intro 2 CS Intro 3
DocsJavaScriptStatements

Statements

The following JavaScript statements are supported for the Arcade:

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

Language Privacy & Cookies Terms Of Use Trademarks © 2020 Microsoft
Powered by Microsoft

Select Language

How do I add a new language?