Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 489 Bytes

ex_106.md

File metadata and controls

10 lines (9 loc) · 489 Bytes

Exercise 106

  • Create a new index106.js file
  • Define the getUserID function and return the number 50
  • Define the isUserValid function and return a boolean value
    • Inside the isUserValid function call the getUserID function to get the 50 value
    • If the user id is higher than 30 return true, if not return false
  • Then outside the functions write the following code
    • If isUserValid then show the following message: User valid
    • Else show the following message: User not valid