mardi 20 novembre 2018

Typescript function - if statement

I have to write a Typescript function "check age", which uses a parameter "age" and outputs in the console, whether it is a child (0-13), a junior (14-17), or a senior over 65 , Otherwise it is an adult.

Check Age (26) leads for example to the edition "The Person is Adult"

How should I do that? Can someone help me please

Aucun commentaire:

Enregistrer un commentaire