JAVASCRIPT
JAVASCRIPT
1) Alert(" ")
2) Document.write()
3) innerhtml
///Sample Program///
<head>
<body>
<script type="text/javascript">
alert("HELLO")
document.write("HELLO")
</script>
<h1>This is ME</h1>
<h1 id="special">This is ME</h1>
</body>
***********************************************************************
console.log("please subscribe");
console.log("DATA");
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
1.js
///***basic.html
<html>
<head>
<body>
<script>
document.write("Hello");
</script>
</body>
</head>
<html>
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
///***DataTypes
1) var
A. Primitive --> string, Number, Boolean
B. Non-primitive(Reference) --> Object, Array, RegExp
var a= 10;
var a= 67.77;
var a="hello";
var c='Hell';
var d = true/false;
console.log(a);
console.log(b);
#######################################################################
Initialize
varible_name=value;| Let varible_name=value; | const varible_name=value;
///***STRING
length
charAt()
indexOf()
toUpperCase()
toLowerCase()
toString()
Escape Charecter -
console.log("it\'me"); --> it' me
\t - space
\n - Next line