Home Top Ad

Responsive Ads Here

Write a program to check String is Equal or not using Javascript

Share:

 <!DOCTYPE html>

<html>

<head>

<title>equal</title>

<script type="text/javascript">

var i;

i=0;

for (var i = 1; i < 4; i++)

{

var s1="Savera";

var s2=prompt("enter the string")

if (s1==s2)

{

alert("string is equal")

}

else

{

alert("string is not equal")

}

}

</script>

</head>

<body>

</body>

</html>

Post a Comment

No comments

Welcome to saveracom.blogspot.com

Data Science using Spreadsheet Software Assignment 3

Printing Workbooks select the cells you want to print and then set that area as the print area   Steps to set a print area: Select the cells...