Professional Documents
Culture Documents
<div>
<script src=”script.js”></script>
<script src=”monoscript.js”></script>
// Order is important to load the required codes first
var a = prompt (“what’s that”) // will prompt a box asking for value of variable a
if (condition) {
alert (“it’s true”); // alert will show the message in a box
}
var = “x”
switch (var){
case “x”:
alert( “ dfdfd”);
break;
case “y”:
alert (“sds”);
break;
default :
alert (“aa chak”);
}
function functionname(a, b ){ //a,b are called parameters
var result = a+b;
alert (result);
}
Functionname(5,10); //this will call the function //5,10 are called arguments
String Properties
Property Description
String Methods
Method Description
concat() Joins two or more strings, and returns a new joined strings
OBJETCS:
DATE OBJECT METHODS