javascript only get number no decimal code example
Example: obtain only integer not decimal js
var n = 5/3
n = Math.floor(n)
//This will return 1.
//Math.floor returns a number less than or equal the number given
var n = 5/3
n = Math.floor(n)
//This will return 1.
//Math.floor returns a number less than or equal the number given