Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 테드대본
- 생활코딩
- react js
- exerd
- 윈도우
- GIT
- install
- 리액트
- 머리빗추천
- relationship
- 데이터베이스
- function expression
- 헤어브러쉬추천
- function declaration
- 함수표현식
- 자바스크립트 함수
- 함수선언문
- Code school
- 탱글티저웻디탱글러
- 자바스크립트
- 깃 설치
- javascript
- window
- 코딩 공부
- props
- ERD
- 인프런
- 직장인마우스
- 코드스쿨
- 송도버스시간표
Archives
- Today
- Total
J's Rhapsody
[Javascript]문제 1.2: Changin Declarations to Expressions 본문
IT/JAVASCRIPT
[Javascript]문제 1.2: Changin Declarations to Expressions
J's Rhapsody 2018. 1. 11. 12:51Changin Declarations to Expressions
Developers for the Forest of Function Expressions Theme Park have created a function declaration named forestFright
, but they’ve decided not to keep the function in memory.
Convert the function from a named function declaration to an anonymous function expression and assign it to a variable called runAway
.
1 2 3 4 5 6 7 | var runAway = function () { var toAlert = ""; for (var i = 0; i < 5; i++) { toAlert = toAlert + "Lions, Tigers, and Bears, Oh My!!\n"; } alert(toAlert); }; | cs |
'IT > JAVASCRIPT' 카테고리의 다른 글
[Javascript]문제 1.5: Functions as Parameters, Arguments and Return Values (0) | 2018.01.11 |
---|---|
[Javascript]문제 1.4: Displaying Function Contents (0) | 2018.01.11 |
[Javascript]문제 1.3: Using Function Expressions with Parameters (0) | 2018.01.11 |
[Javascript]Function Expressions (0) | 2018.01.11 |
Comments