Javascript Number intMethod()

Description

Javascript Number intMethod()


Number.prototype.intMethod = function() {
    return parseInt(this);
};
function convert_int() {
    var a = 10.000;
   console.log(a.intMethod());/*from  www  .ja  va2 s  . c  o m*/
}convert_int(a);



PreviousNext

Related