DEV Community

Manav Misra
Manav Misra

Posted on

Hello World

learnyounode

Navigate to the directory you created for our work. For example, go home with cd. Then, do: cd Code/learnyounode.

Then: learnyounode brings up our menu:  raw `learnyounode` endraw  menu

Select the first challenge: 'Hello World'.

touch program.js

Let's create our first file - touch program.js (it doesn't have to be called 'progam.js').

Add Code

Inside of 'program.js':

console.info("HELLO WORLD"); goes into this file.

As you probably already know, we are just accessing the console object and invoking a method, info. We are passing in a string, "HELLO WORLD".

learnyounode verify

In your terminal, learnyounode verify program.js will allow us to 'verify' and pass the first challenge ✨.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free β†’

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay