Postagens

Solving third lesson

'use strict'; var express = require('express'); var app = express(); app.get('/', function(req, res){     res.send('Hello www world.'); }); var server = app.listen(3000); console.log('Servidor Express iniciado na porta %s', server.address().port);

Third lesson

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.

Solving second lesson - dotnet

Go to:  https://github.com/llimacruz/euler/blob/master/Multiples3and5/Program.cs

Solving second lesson - node

Imagem
Take a look at these items: What's the difference between const and let ? What's the meaning of 'use strict'?

Second lesson

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

Solving first lesson - dotnet

Imagem
After installing dotnet core 1.0.1 you can check it: C:\dev\learningLLC\lesson1\dotnet>dotnet --version 1.0.1 You must create the new console solution. You can dot it easily using command line: C:\dev\learningLLC\lesson1\dotnet>dotnet new console -o hellow Getting ready... Content generation time: 71,7361 ms The template "Console Application" created successfully. This command creates a new folder with an hello world console application: C:\dev\learningLLC\lesson1\dotnet\hellow>dir  O volume na unidade C não tem nome.  O Número de Série do Volume é 906E-B7FE  Pasta de C:\dev\learningLLC\lesson1\dotnet\hellow 22/04/2017  11:41    <DIR>          . 22/04/2017  11:41    <DIR>          .. 22/04/2017  11:41               170 hellow.csproj 22/04/2017  11:41               176 Program.cs                2 arquivo(s)            346 bytes                2 pasta(s)   21.007.282.176 bytes disponíveis Type "code ." on prompt and VS

Solving first lesson - node

Imagem
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.