Created
July 20, 2017 13:49
-
-
Save sandrooliveira/00d5588561a4f724690f22f8ce2500ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const port = 3000 | |
app.get('/',(request,response) => { | |
const num1 = parseInt(request.query.num1) | |
const num2 = parseInt(request.query.num2) | |
const soma = num1 + num2; | |
response.send(soma.toString()) | |
}) | |
app.listen(port,() => console.log('Server running on ' + port)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certinho.