top of page
Search
zakariyesahid96

Numbers

In JS it common that:

  • Has one number type

  • positive number

  • negative number

  • whole number, intergers

  • decimal number


For example:

50

7

0.99

-45


The order of operation when calculating is pedmas= parentheses,exponents,multiplication, addiction and subtraction.


// creates coklent and modulo is used to determine if number is even or odd.


Any number that mod by 2 tells us if it’s even or odd. In this case if the last number ends with even its zero.


Lastly exponent exponentiation is 2 multiplication and takes first number and raises to the power for example 2xx4=16.


To note nan is not a number but a numeric value that represents something that is not a number.


For example = 0/0 //Nan

1 view0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page