repl.it
@hayaodeh/

_Oct 30_ input output first lesson

Nodejs

This is an intro to javascript. first lesson haya and tim

fork
loading
Files
  • index.js
  • ignore.js
  • Packager files
  • package-lock.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const { question } = require('readline-sync');

let C = question("enter temperature in celsius?")
let F = 1.8 * C + 32
console.log("temperature in fehrenheit is:", F)


// (0°C × 9/5) + 32 = 32°F



// var name = question("What's your name?")
// console.log("Hello " + name)







// // var name = "haya"
// console.log(name)
// // console.log("hello haya")

// var bank = 1000
// var deposit = (100)
// var interestRate = 1.01

// console.log((deposit*interestRate)+bank)
// var num=(1+1)

// // curly braces {}
// // brakcets []
// // quotes " "
// // parentheses ()
?