diff --git "a/1\353\262\210/1.md" "b/1\353\262\210/1.md"
index d44b760..895c519 100644
--- "a/1\353\262\210/1.md"
+++ "b/1\353\262\210/1.md"
@@ -1,3 +1,8 @@
### console.log와 return의 차이가 무엇인가요?
(여기에 작성)
+console.logs
+- 값을 결과로 정의(저장)하지 않고 단순 결과 값을 콘솔에 단순 표시하는 것
+
+return
+- 다음의 결과로 함수의 값을 정의(저장)하고 함수를 종료하겠다는 의미
\ No newline at end of file
diff --git "a/2\353\262\210/2.html" "b/2\353\262\210/2.html"
index e69de29..b57cc38 100644
--- "a/2\353\262\210/2.html"
+++ "b/2\353\262\210/2.html"
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 2주차 숙제 2번
+
+
+
+
+
\ No newline at end of file
diff --git "a/2\353\262\210/2.js" "b/2\353\262\210/2.js"
index eed7eed..c4b163d 100644
--- "a/2\353\262\210/2.js"
+++ "b/2\353\262\210/2.js"
@@ -7,5 +7,7 @@ function 콘솔함수() {
}
const 리턴의결과 = 리턴함수(); // 리턴의결과에는 무슨 값이 들어가있을까요? 아래 주석처리 후 작성해보세요
+// 리턴함수하이
const 콘솔의결과 = 콘솔함수(); // 콘솔의결과에는 무슨 값이 들어가있을까요? 아래 주석처리 후 작성해보세요
+// undefined
\ No newline at end of file
diff --git "a/3\353\262\210/3.html" "b/3\353\262\210/3.html"
index e69de29..108a7b4 100644
--- "a/3\353\262\210/3.html"
+++ "b/3\353\262\210/3.html"
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 2주차 숙제 3번
+
+
+
+
+
\ No newline at end of file
diff --git "a/3\353\262\210/3.js" "b/3\353\262\210/3.js"
index 2e3b731..97cc0df 100644
--- "a/3\353\262\210/3.js"
+++ "b/3\353\262\210/3.js"
@@ -7,4 +7,4 @@ function 나이말해주는함수(나이) {
}
// 콘솔로그에 어떻게 작성해야 할까요?
-console.log(); // "안녕 철수야~ 반가워. 내 나이는 20살이야"
+console.log(`${인사하는함수("철수")} 반가워. ${나이말해주는함수(20)}`); // "안녕 철수야~ 반가워. 내 나이는 20살이야"
diff --git "a/4\353\262\210/4.html" "b/4\353\262\210/4.html"
index e69de29..489441b 100644
--- "a/4\353\262\210/4.html"
+++ "b/4\353\262\210/4.html"
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 2주차 숙제 4번
+
+
+
+
+
\ No newline at end of file
diff --git "a/4\353\262\210/4.js" "b/4\353\262\210/4.js"
index 062ca1c..4a647f1 100644
--- "a/4\353\262\210/4.js"
+++ "b/4\353\262\210/4.js"
@@ -1,7 +1,8 @@
let 총합 = 0;
// for문을 이용하여 숫자리스트의 숫자를 모두 더한 값을 총합 변수에 할당 후 console.log로 출력합니다.
-for () {
+for (let i = 0; i <= 10; i++) {
+ 총합 += i;
}
console.log(총합) // 결과: 55
\ No newline at end of file
diff --git "a/5\353\262\210/5.html" "b/5\353\262\210/5.html"
index 3d53d44..e2be2e6 100644
--- "a/5\353\262\210/5.html"
+++ "b/5\353\262\210/5.html"
@@ -4,14 +4,14 @@
- Document
+ 2주차 숙제 5번
1
2
3
-
+