Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Numbers can be integers (whole numbers) or floats (numbers with a decimal).

var preciseAge = 30.612437;

Floats can be rounded to the nearest whole number using the Math.round function:

var preciseAge = 30.612437;
var roughAge = Math.round(preciseAge); // 30

Exercise

  • Using the variables provided in the exercise calculate the percentage of mentors and students in the group

Expected result

Percentage students: 65%
Percentage mentors: 35%