Payilagam: 10-Mar-2025
Topic: Javascript methods
Math.random()
It generate a random float number from 0 to 1. (eg: 0.90055, 0.534434)
Math.round()
It rounds the float number into the whole number.
Math.floor()
It also round the float number to its lowest value.(eg: .0980 -> 1)
Math.ceil()
It also round the float number to its highest values. (eg: 9.43 -> 10)
SetTimeout(any_function, timeout_limit_in_sec)
It performs the function, after the mentioned the time limit crossed.
Top comments (0)