Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://zero.p2p.shpp.me/tasks/2_2_km_in_day_2.html
- Решение с помощью else
- let distance = prompt("Сколько вы проходите километров за день? : ")
- if (distance <= 3) {
- console.log("Мало")
- } else if (distance >= 20) {
- console.log("марафонець")
- }
- else {
- console.log("красавчик")
- }
Advertisement
Add Comment
Please, Sign In to add comment