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
35 lines (28 loc) · 840 Bytes
/
app.js
File metadata and controls
35 lines (28 loc) · 840 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
console.log("Hello World!\n==========\n");
console.log(
"Follow the steps in the README.md file to complete the exercises:\n==========\n"
);
// Exercise 1
const firstAlias = "Ihuoma";
const middleAlias = "Ebo";
let lastAlias = "Onwunali";
var age = 34;
// Exercise 2
let fullAlias = `${firstAlias} ${middleAlias} ${lastAlias}`;
console.log(fullAlias);
console.log("\n=================\n");
// Exercise 3
var city = "Los Angeles";
var passTime = "learning";
let simpleStory = `Hello, here is a simple story: my alias or what you may call a name is ${fullAlias}.
My residence is located in ${city}. And I enjoy ${passTime} and coding!`;
console.log(simpleStory);
console.log("\n=================\n");
var x = "12";
var y = 17;
function mult(x, y)
{
return x * y;
}
console.log(mult(17,98));
console.log("\n=================\n");