It is a comment command that is used for the documentation of the code. Like in other programming languages, the comments used in QBasic are not executable. We have to use the comment command in a separate statement. We need a designator for the continuation of the comment on the next line. Now, when the commands will end with an executable line, we need to separate the comment from the executable line by using the semicolon.
The syntax of the REM command in QBasic
REM comment