Build a service that listen an http port (3000). When the browser call this route (http://localhost:3000), the service must send a "Hello www world". In order to accomplish this task, use node.js and express.
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. Source of this challenge: https://projecteuler.net/problem=1
Node After install node 6.10.2 you can check on prompt if everything is all right: C:\dev\learningLLC\lesson1\node>node --version v6.10.2 And you can play for the first time: C:\dev\learningLLC\lesson1\node>node > console.log(1+2) 3 undefined > (To exit, press ^C again or type .exit) > Let's create our Hello World script: Create a new js file. Open it using vscode. Type this complex code: console.log('Hello world') Save. Go to prompt and run it: node [your file]. The extension is optional.
Comentários
Postar um comentário