Skip to content

Commit

Permalink
JavaScript_intro_2nd
Browse files Browse the repository at this point in the history
  • Loading branch information
LiJell committed May 16, 2022
1 parent 84cc566 commit 5cd7b52
Show file tree
Hide file tree
Showing 62 changed files with 100 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Front-End/JavaScript/Data_Type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Data Type
## Array

```javascript
const daysOfWeek = ['mon','tue','wed','thu','fri','sat'];

// Get Item from Array
console.log(daysOfWeek[4]);

// Add one more day to the array
daysOfWeek.push('sun');

console.log(daysOfWeek);
```

![image-20220517010008395](C:\Users\hanju\TIL\image.assets\image-20220517010008395.png)

## Object

```javascript
const player = {
name: "LiJell",
points: 10,
fat: true,
};

console.log(player);
console.log(player.name);
console.log(player["points"]);
```

![image-20220517010250483](C:\Users\hanju\TIL\image.assets\image-20220517010250483.png)

```javascript
const player = {
name: "LiJell",
points: 10,
fat: true,
};

console.log(player);
console.log(player.name);
console.log(player["points"]);


player.fat = false;
console.log(player);
```

![image-20220517010834138](../../image.assets/image-20220517010834138.png)

- const를 바꿀 수 없지만, const 안의 Object를 변경하는 것이기 때문에 부분 수정이 가능하다

- 하지만, const 전체를 바꾸려하면 에러가 생김
- Object 추가도 가능


43 changes: 43 additions & 0 deletions Front-End/JavaScript/Function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Function

```javascript
function sayHello(nameOfPerson, age) {
console.log("Hello my name is " + nameOfPerson + " and I am " + age)
}

sayHello("LiJell", 10);
sayHello("Hanju", 18);
sayHello("Toonsquare", 99);
```

![image-20220517012305730](C:\Users\hanju\TIL\image.assets\image-20220517012305730.png)

```javascript
function plus(a, b) {
console.log(a + b);
}

function divide(a,b) {
console.log(a / b);
}
plus(1, 3);
divide(20, 5);
```

![image-20220517012716475](../../image.assets/image-20220517012716475.png)

```javascript
const player = {
name: "LiJell",
sayHello: function (otherPersonsName) {
console.log("Hello! " + otherPersonsName + " nice to meet you!");
},
};


console.log(player.name);
player.sayHello("Hanju");

```

![image-20220517013204748](../../image.assets/image-20220517013204748.png)
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added image.assets/image-20211223173426151.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173457220.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173518621.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173536194.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173600720.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173632395.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173804635.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173902649.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223173945056.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223174155472.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223174734499.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223174803326.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175055100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175128820.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175205988.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175230360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175253758.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223175526582.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223180806445.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.assets/image-20211223181447070.png
Binary file added image.assets/image-20211223184830216.png
Binary file added image.assets/image-20211223185040090.png
Binary file added image.assets/image-20211223185257337.png
Binary file added image.assets/image-20211223185353496.png
Binary file added image.assets/image-20211223185445968.png
Binary file added image.assets/image-20211223185613636.png
Binary file added image.assets/image-20211223185729041.png
Binary file added image.assets/image-20211223185741852.png
Binary file added image.assets/image-20211224222236141.png
Binary file added image.assets/image-20211224222434739.png
Binary file added image.assets/image-20211224223712060.png
Binary file added image.assets/image-20211224224454685.png
Binary file added image.assets/image-20211224224631133.png
Binary file added image.assets/image-20211224224747563.png
Binary file added image.assets/image-20211224224833962.png
Binary file added image.assets/image-20211224224935464.png
Binary file added image.assets/image-20211224225054656.png
Binary file added image.assets/image-20211224225311763.png
File renamed without changes
Binary file added image.assets/image-20211228211223785.png
Binary file added image.assets/image-20211228211350926.png
Binary file added image.assets/image-20211228211605443.png
Binary file added image.assets/image-20211228212625211.png
Binary file added image.assets/image-20211228213304814.png
Binary file added image.assets/image-20220106190953545.png
Binary file added image.assets/image-20220106191126514.png
Binary file added image.assets/image-20220106191248910.png
Binary file added image.assets/image-20220106191344081.png
Binary file added image.assets/image-20220517010008395.png
Binary file added image.assets/image-20220517010250483.png
Binary file added image.assets/image-20220517010834138.png
Binary file added image.assets/image-20220517012305730.png
Binary file added image.assets/image-20220517012716475.png
Binary file added image.assets/image-20220517013204748.png

0 comments on commit 5cd7b52

Please sign in to comment.