forked from truecodersio/JavaScript_Variables
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
38 lines (31 loc) · 869 Bytes
/
app.js
File metadata and controls
38 lines (31 loc) · 869 Bytes
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
36
37
38
console.log("Hello World!\n==========\n");
console.log(
"Follow the steps in the README.md file to complete the exercises:\n==========\n"
);
const firstName = "Rosie";
let lastName = "Cotton";
var age = 51;
lastName = "Gamgee";
age = "52";
let language = "JavaScript";
let createdYear = 1995;
let isCaseSensative = true;
console.log(`${language} was first released in ${createdYear}.`);
let product = "T-shirty"
let price = 19.99;
let isOnSale = false;
let salePercentage = 15;
let stock = 0;
let inStock = false;
let selectedSize = "M"
console.log(
`${product} in size ${selectedSize} is $${price} with ${stock}
in stock.`
);
let title = "Name of the wind";
let author = "PatrickRothfuss";
let pagecount = 722;
let bookmark = 456;
let hasRead = true;
console.log(`${title} by ${author} is ${pagecount} pages long.
Your last bookmark was page ${bookmark}`)