Vitaliy__Tsekh

Untitled

Jul 19th, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. https://zero.p2p.shpp.me/tasks/2_2_km_in_day_2.html
  2. Решение с помощью else
  3.  
  4. let distance = prompt("Сколько вы проходите километров за день? : ")
  5. if (distance <= 3) {
  6. console.log("Мало")
  7. } else if (distance >= 20) {
  8. console.log("марафонець")
  9. }
  10. else {
  11. console.log("красавчик")
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment