Skip to content

Commit

Permalink
Added 2 more files
Browse files Browse the repository at this point in the history
more practices!
  • Loading branch information
Jason011125 committed Feb 6, 2022
1 parent ec3dd4e commit 0fd5e38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Kelvin_to_fahrenheit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//this is the constant kelvin
const Kelvin = 0;
//this is the Celcius Variable
const Celsius = Kelvin - 273;
//now set up faherenheit
let fahrenheit = Celsius *(9/5) + 32;
//round up faherenheit
fahrenheit = Math.floor(fahrenheit);
console.log(`The temperature is ${fahrenheit} degrees Fahrenheit`);

3 changes: 3 additions & 0 deletions print_out_variables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const myName = 'Jason'
const myCity = 'San Diego'
console.log(`My name is ${myName}. My favorite city is ${myCity}.`)

0 comments on commit 0fd5e38

Please sign in to comment.