daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(age) {
  2.     if (age <= 2) {
  3.         console.log("baby")
  4.     } else if (age <= 13) {
  5.         console.log("child")
  6.     } else if (age <= 19) {
  7.         console.log("teenager")
  8.     } else if (age <= 65) {
  9.         console.log("adult")
  10.     } else {
  11.         console.log("elder")
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'WINTER SPECIAL'!
Get 40% OFF Pastebin PRO accounts!
 
Top