Skip to main content

Posts

Showing posts with the label execute

Simple Example of Nodejs- My First Nodejs Programm

In this section, our plan is to lead you into the world of Nodejs programming by taking you through the two basic steps required to get a simple program running. As with any application, you need to be sure that Nodejs[1] is properly installed on your computer. You also need an editor (I will suggest sublime[2] editor) and a terminal application.  Programming in Nodejs.  We break the process of programming in Nodejs into two steps:     Create the program by typing it into a text editor and saving it to a file named, say, app.js.     Run (or execute) it by typing "node app.js" in the terminal window. Creating a Nodejs program. A program is nothing more than a sequence of characters, like a sentence, a paragraph, or a poem. To create one, we need only define that sequence characters using a text editor in the same way as we do for e-mail. app.js is an example program. Type these character into your text editor and save it into a file name...