| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- data
- Agile
- 자바스크립트
- Method
- angular
- matplotlib
- analyzing
- tensorflow
- webcrawling
- 프로젝트
- ECS
- adaptive life cycle
- pandas
- DANAWA
- 다나와
- keras
- opencv
- javascript
- data analyze
- Project
- visualizing
- TypeScript
- instance
- 크롤링
- Crawling
- 애자일
- AWS
- Scrum
- algorithm
- python
Archives
- Today
- Total
LiJell's 성장기
Conditional 본문
반응형
// 요즘은 prompt 잘 안씀
// parseInt is a converter: string to number
const age = parseInt(prompt("How old are you?"));
if (isNaN(age)){
console.log("Please write a number");
} else {
console.log("Thank you for writing your age")
}




반응형
'Front-End > JavaScript' 카테고리의 다른 글
| Events Control (0) | 2022.05.18 |
|---|---|
| Events (0) | 2022.05.17 |
| Function (0) | 2022.05.17 |
| Data Type (0) | 2022.05.17 |
| Booleans (0) | 2022.05.13 |
Comments