javascript Conversation

javascript Conversation

javascript conversation

javascript conversion functions.

  • Number() : this method is used to convert data into Number
  • parsetInt() : this method is used to convert data into integer type of number
  • parseFloat() : this method is used to convert data into Float type of number.
  • valueOf() : this method is used to convert string to number.

 

How to Generate Random Number between 0 to 99 in JavaScript ?

Math.random() * 100;

 

How to create Date Variable in JavaScript ? how javascript conversation is used ?

In JavaScript date is calculated in miliseconds, but you can use following constructor to create date object. be sure to assign month -1 as month is value is considered as index value (possible values : 0 – 11)

 

 

How to extract day, month, year, hour, minute and second from data using JavaScript ?

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative