Clear feedback on which line number caused a syntax error. Getting Started: Your First Program
If you’ve found an online compiler and want to test it out, try this quintessential "Hello World" loop: gw basic online compiler
10 CLS 20 PRINT "Welcome to GW-BASIC Online!" 30 PRINT "Type your name: "; 40 INPUT N$ 50 PRINT "Hello, "; N$; "! Let's do some math." 60 PRINT "Enter a number: "; 70 INPUT X 80 IF X MOD 2 = 0 THEN PRINT X; " is even." ELSE PRINT X; " is odd." 90 PRINT "Goodbye!" 100 END Clear feedback on which line number caused a syntax error
Turning the nostalgic "GW-BASIC" experience into a modern web application requires bridging the gap between 1980s limitations and 2020s expectations. : GW-BASIC is not case-sensitive for commands (e
: GW-BASIC is not case-sensitive for commands (e.g., print is the same as PRINT ). Abbreviations : You can use ? as a shortcut for PRINT .
Under the hood, the compiler translates GW-BASIC code into JavaScript and runs it in a safe, sandboxed environment. It supports: