Number() method in Javscript
Number() method in Javscript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test Page</title>
</head>
<body>
<!-- THIS EXAMPLE BASICALLY COVERS ALL THE MATH METHODS IN JAVASCRIPT -->
<script type="text/javascript">
var first = "90";
var sec = Number(first);
console.log(sec + 20 );
</script>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!