Loading
View RSS Feed

sanky

How to Reverse Digits and Strings In Javascript?

Rate this Entry
Code:
<html>
<head>
<script type="text/javascript">
var val;
val=prompt(" enter the value ");
var rev= 0;
for(var index=val.length - 1;index>=0;index--)
rev=rev+val.charAt(index);
alert(rev);
</script>
</head>
<body>
</body>
</html>

Submit "How to Reverse Digits and Strings In Javascript?" to Digg Submit "How to Reverse Digits and Strings In Javascript?" to del.icio.us Submit "How to Reverse Digits and Strings In Javascript?" to StumbleUpon Submit "How to Reverse Digits and Strings In Javascript?" to Google

Categories
Java , Web Design

Comments




Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.