Wednesday 22 August 2012

parseInt | eval | in javascript

How to use  parseInt , eval , in javascript
<script>
function fun1()
{
x="dev"
y=8786
alert(parseInt(x)+y)
}

</script>
<body>
<input type="button" value="click" onclick="fun1()">
</body>


<script>
function create_function()
{
x="200+788"
alert(eval(x))
}
</script>
<body>
<input type="button" value="click" onclick="create_function()">
</body>

How to use parseInt , eval , in javascript










Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: