Hi dear welcome to Ascode Blog . In this post we are going to learn how to use logical oparator in javascript. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE. 3rdly creat ap.js file Then Copy The Javascript CODE and pest it then open the index.html file with your browser.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>logical oparators</title>
<script src="ap.js"></script>
</head>
<body>
<!-- binary = 0 1
0 = false
1 = true -->
</body>
</html>
CSS
h1 {
font-size: 5rem;
text-align: center;
margin-top: 20%;
}
Javascript
var x = 20;
var y = 10;
console.log(x == 20);
0 Comments