Tuesday, 14 November 2017

5- Variables in JavaScript (Diffrence b/w strongly type and loosely type...





—<!DOCTYPE
html>
—<html>
—<body>
—  <h1>Demo: JavaScript Variables
</h1>
— 
—  <p id="p1"></p>
—
—  <script>
—  var
one =1;  // number value
—
—  one= 1.1; // 
decimal value
— 
—  one = true; // Boolean value
— 
—  one = null; // null value
— 
—  one = 'one'; // string value
—
—
—  document.getElementById("p1").innerHTML
= one;
—    </script>
—</body>


—</html>

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...