Language Β· MagiScript
JavaScript Similarities
MagiScript is a programming language similar to JavaScript, designed specifically for magicians to create mini-apps. While MagiScript is similar to JavaScript, it only supports a limited subset of the JavaScript language. Here’s what’s currently supported:
- Variables: var, let, and const; literals; basic types.
- Operators: like addition, subtraction, and comparison.
- Control flow:
if/else
,while
,do..while
, andfor
. - Functions: they can be nested and arrow expressions.
- Basic classes.
However, there are also some features that are not supported in MagiScript. These include:
- Most of the built-in functions are missing, such as math, string, and array manipulation-related methods. We can add them on demand.
- Only
===
and!==
equality operators are supported,==
and!=
are not. - Some operators are not working with strings:
-
,/
,%
,*
,**
,<=
,<
,>=
,>
. Using them can cause a fatal error and the system will restart. - Regular expressions are not supported.
- No modern features like destructuring, spread, rest, and default parameters.
It’s important to note that any feature from the ECMAScript standard, whether supported or unsupported, is subject to change as we continue to work on improving the language.
We hope this breakdown of supported and unsupported language features has been helpful in understanding the capabilities of MagiScript. For more detailed information on how to use these features, please refer to the relevant sections of this documentation.
General
πΒ First Steps
MagiScript Editor
πΒ Basics
πΒ Running Your First Program
πΒ App Store
πΒ Atom Settings (Editor)
πΒ Debugging Techniques
Examples
πΒ Atom Time
ποΈ Time Practice
πΒ Atom Pi (Pi Revelations)
πΒ Atom Drum
ποΈ Atom Stack
πΒ Atom Square
πΒ Atom Level
πΒ Atom THMPR
πΒ Poker Hands
πΒ Keyboard Numeric
πΒ Keyboard NOKIA
πΒ Keyboard Cursor
πΒ Keyboard Media
πΒ Keyboard Custom
Input/Output
πΒ Buttons
πΒ Vibration Motor
πΒ RGB LED
πΒ Devices
πΒ PeekSmith
πΒ SB Watch
πΒ Bluetooth Keyboard
πΒ Bluetooth Mouse
πΒ Timers
πΒ Database
πΒ Events
πΒ System (exit, sleep, rand)
πΒ Objects (card, time)
Language
πΒ Summary
πΒ Comments
πΒ Variable Declarations
πΒ Operators
πΒ Control Flow
πΒ Functions
πΒ Numbers
πΒ Strings
πΒ Arrays
πΒ Objects
πΒ Uint8Array