-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwts.js
More file actions
33 lines (26 loc) · 789 Bytes
/
twts.js
File metadata and controls
33 lines (26 loc) · 789 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
// function sayHello(nameOfPerson, age) {
// console.log("Hello my name is " + nameOfPerson + " and I'm " + age);
// }
// sayHello("nicco", 10);
// sayHello("lynn", 23);
// sayHello("dal", 21);
// function plus(a, b) {
// console.log(a + b);
// }
// function divide(a, b) {
// console.log(a / b);
// }
// plus(1, 2);
// divide(10, 2);
// function sayHello(){ 밖에서는 이형태로 function문을 쓰지만
// 아래 처럼 object문 안에 있을 떄는 sayHello: function(){}형태로 function문을
//쓴다
// }
// const player = {
// name: "nico",
// sayHello: function (otherPersonsName) {
// console.log("Hello" + otherPersonsName + "Nice to meet you");
// },
// };
// console.log(player.name);
// player.sayHello("lynn");