Skip to main content
Microsoft Microsoft
MakeCode
About FAQ المشاريع GitHub
مرجع
كائنات المتحكم اللعبة موسيقى scene معلومات الصور
كتل
On Start
Loops
repeat for while for of
Logic
if Boolean
متغيرات
assign change var var
رياضيات JavaScript blocks كتل مخصصة
Python
Calling Sequencing متغيرات Operators Statements وظائف Classes
JavaScript
Calling Sequencing متغيرات Operators Statements وظائف Types Classes Interfaces Generics
Types
Number سلسلة Boolean Array Function Image Sprite
Blocks Gallery
Miscellaneous
About Support Translate Sharing projects Multiplayer Offline support حفظ سجل الدخول Cloud Sync VS Code Asset packs
الأجهزة
Errors Adding New Board Raspberry Pi Makey Makey Shoebox Controller Dev Debug connector
Developers
Command Line Interface Visual Studio Code support Blocks Embed Art, images, colors Sounds
الدروس
Cherry Pickr Barrel Dodger Dance Party BlockOut
الدورات
CS Intro 1 CS Intro 2 CS Intro 3
DocsJavaScriptStatements

Statements

The following JavaScript statements are supported:

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

اللّغة الخصوصية وملفات تعريف الارتباط شروط الاستخدام العلامات التجارية © 2022 Microsoft
Powered by Microsoft

اختر اللغة

How do I add a new language? Translate this page