01 — Hello: say your first words
Your first program. NME prints whatever follows show — no quotes, no
parentheses.
Steps
Create a file named
hello.nmein an empty folder and write:
run it →show Hello world!Run it:
nme run helloThe console prints
Hello world!.showis the action; the rest is the message.The same idea works in Korean, and English and Korean can share one file. Replace the file with:
run it →안녕하세요! 말해줘말해줘is the Korean action forshow.NME also understands plain speech without an action word when the line is a natural sentence:
run it →Hello everyone! 오늘도 반가워요!
Try it yourself
Change the message to your own name or a favorite place, save, and run
nme r hello again. The shortcut nme r is the same as nme run.
What you learned
nme run hellorunshello.nme;nme r hellois the shortcut.show messageprints the rest of the line;말해줘is the Korean action.- No quotes, commas, or parentheses are needed for a sentence.
- A natural one-line sentence prints by itself.