Skip to content

Instantly share code, notes, and snippets.

@sandrooliveira
Created July 20, 2017 13:49
Show Gist options
  • Save sandrooliveira/00d5588561a4f724690f22f8ce2500ae to your computer and use it in GitHub Desktop.
Save sandrooliveira/00d5588561a4f724690f22f8ce2500ae to your computer and use it in GitHub Desktop.
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))
@tuliofaria
Copy link

Certinho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment