Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

type conversions in javascript

var a=15
const doubleToInt=parseInt(15.15)
const intToFloat=a.toFixed(2)
var a="1546"
const stringToInt=parseInt(a)
 
PREVIOUS NEXT
Tagged: #type #conversions #javascript
ADD COMMENT
Topic
Name
4+8 =