Hacker News new | ask | show | jobs
by atrophying 3658 days ago
10 LET L = "BASIC"

20 LET H = "HELLO WORLD"

30 IF L = "BASIC" GOTO 40

40 PRINT H

50 END

1 comments

Modern BASICs don't use line numbers or even the let Keyword. In old BASIC you had to use a $ sigil after your variable for strings. In modern BASIC compilers you have to declare the type e.g. DIM Name AS STRING. Keywords don't have to be type in all caps either in a modern BASIC.