250x250
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 |
Tags
- ipad
- 백엔드
- MAC
- 애니메이션
- xcode
- react
- CSS
- IOS
- 개발자
- html5
- jQuery
- effect
- front-end
- 프론트엔드
- keyframes
- button
- 풀스택
- 비전공 개발자
- javascript
- SWIFT
- 비전공자
- Animation
- css3
- php
- 자바스크립트
- iOS 개발자
- hover
- iPhone
- HTML
- image
Archives
- Today
- Total
비전공자 개발일기
Javascript - 피보나치 수열 본문
728x90
SMALL
let current = 1;
let previous = 0;
for(let i =1 ; i <= 50; i++){ // 50개의 항을 구하는 반복문
console.log(current);
let temp = previous;
previous = current;
current = current + temp;
}
728x90
LIST
'Javascript' 카테고리의 다른 글
| Javascript - 팩토리얼, 팰린드롬 (0) | 2021.08.10 |
|---|---|
| Javascript (0) | 2021.08.09 |
| Javascript - Typescript (0) | 2021.08.05 |
| Javascript (0) | 2021.08.04 |
| Javascript (0) | 2021.08.03 |