Allows remarks or comments to be included within a program. This command is not executed.
⎧ REM ⎫ comments
⎨ ⎬ └──┬───┘
⎩ ' ⎭ String expression
REM or '
comments: String expression (internal codes 20ʰ to 7Eʰ and 80ʰ to FBʰ)
REM
statement following the line number indicates
that the following text is comments and should be ignored in program execution.REM
statement can only be used at the beginning of a line.REM
statement is treated as a comment and is not executed.
PRINT A: REM 123 123 is treated as a comment
→ comments
PRINT A REM 123 SN error occurs.
PRINT A ' 123 123 is treated as a comment
→ comments
10 ' REM(') indicates comment