Forbrukslån | Paras Läppäri 2017 | Kredittkort | Billigst Strøm 2017 | Beste Boligalarm 2017 | Beste Forsikringsselskap | Mobilselskaper | Verditakst av Bolig
JavaScript programming

Operator and Operand java script tutorial

Operator:

Other programming languages, such as JavaScript logical, relational and arithmetic operations through the execution of the program is made for special functions. And these logical, relational and arithmetic operations are used to perform some special symbols or characters. Such as +, -, *, /, <,>, =, etc; These marks are samurai operator.

Operand:

Only the operator does not have any value. Operators of different kinds of data, variables, numbers, etc. work with. These data, variables, numbers that samurai Darren. For example; If you are writing x + y = 55; The x, y and 55 Darren

Practice Project:

<html>
<head>
<title> www.trickbd.com.bd</title>
<style>
body{background: #FFC;
font-size:20px;}
h2{color:#FF0066;}
</style>

</head>
<body>
<script type = “text/java script”>
var a = 30;
var b = 20;
var c = 5;
var d = ( a + b )* c;
document.write(“<p>( A + B ) × C = ”
+ d + “.</p>”);
document.write(“<p>A= ”
+ a + “.</p>”);
document.write(“<p>B= ”
+ b + “.</p>”);
if( a>b ){
document.write(“The largest value is A “);
}
else{
document.write(“The largest value is B “);
}
</script>
</body>

</html>

Notepad: to open a file type from the menu at the top of layer code by clicking on the Save as File name: index.html, Save as type: All files, save and open the index.html file with the Mozilla Firefox look like the image shown below.

( A + B ) × C = 250.

A= 30.

B= 20.

The largest value is A

Propitiate used above +, =, *,> is the operator. And a, b, c, d is aparenda.

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment