-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
42 lines (40 loc) · 1.25 KB
/
Copy pathapp.js
File metadata and controls
42 lines (40 loc) · 1.25 KB
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
39
40
41
42
console.log("Hey Dear");
console.log("I am exited to talk to you");
let bot;
bot = "teacherbot";
let botLocation = "The universe";
console.log ("Allow me to introduce myself")
let botItroduction = ("My name is " + bot +".");
console.log(botItroduction);
let botLocationsentence = "i live in " + botLocation + ".";
console.log(botLocationsentence);
bot ="professorbot";
let nickNameIntroduction ="my nickname is " + bot + ".";
console.log(nickNameIntroduction);
bot = "AwesomeTeacherBot";
let newNickNameGreeting = "i love my nickname but i wish people would call me " + bot + ".";
console.log(newNickNameGreeting);
let favoritesubject = "computer science";
let favoritesubjectsentence = "my favorite subject is " + favoritesubject + ".";
console.log(favoritesubjectsentence);
console.log("well, it was nice talking to you. have a nice day!");
let a ="hello world"/1000;
console.log(a);
console.log(typeof a);
let result =2 *"10";
console.log(result);
console.log(typeof result);
let subtraction = "10"- 5;
console.log(subtraction);
console.log(typeof subtraction);
let num1 = 20;
let num2 = 30;
let num3 = 10;
let sum = num1 + num2 + num3;
console.log(sum);
sum = num2 - num1;
console.log(sum);
sum = num1 * num2 * num3;
console.log(sum);
sum = num2 / num3;
console.log(sum);