Math Methods By Chloe

Javascript has only one type of number. Numbers can be written with or without decimals. Numbers are not written with any quotations, otherwise it would be a string.
    var x = 57;
    x.typeOf(); -> number.

    var y = "567"
    y.typeOf(); -> string.
    
Some things that you should note regarding JS numbers are:
NaN - a JS reserved keyword indicating the result is 'Not a Number'
E.g. var x = 500/"word" will return NaN.

If you divide by 0, JS will always return 'infinity'. The data type of infinity is number.

Number Methods.

Javascript has different methods that can be used on numbers. Some are listed below

Math Methods.

Javascript has different math methods that can be used on numbers. Some are listed below