types of operators in javascript || javascript course || codeandman (sourcecode)

hey guys how are you all today in this post I am going to give you the source code of my video called types of operators in javascript. so let's begin :
here's the complete source code and the video:-




// ------------------------------------------------------------------------------------
// COMPARISON OPERATORS IN JAVASCRIPT
console.log("COMPARISON OPERATORS IN JAVASCRIPT")
console.log(32==32) // checking if 32 is equal to 32
console.log(32!=32) // checking if 32 is not equal to 32
console.log(32>=31) // checking if 32 is greater or equal to 31
console.log(32<33)
console.log(32>30)
console.log(32<=09)
// ASSIGNMENT OPERATORS
console.log("---------------------------------------")
console.log("Assignment operators in javascript")
var d = 34;
var e = 3;
var a = 10;
console.log(d)
console.log(d+=1)
console.log(d-=3)
console.log(e*=2)
console.log(a/=2)
console.log(a%=3)

// LOGICAL OPERATORS
console.log("----------------------------------------")
console.log("Logical operators in Javascript")
// LOGICAL OR
console.log(true||true);
console.log(true||false);
console.log(false||true);
console.log(false||false)
// LOGICAL AND
console.log("-----------")
console.log(true&&false);
console.log(true&&true);
console.log(false&&true);
console.log(false&&false)
// ------------------------------

I hope that you liked this post.
Like share and subscribe to the video and the channel
thank you

Comments

Popular posts from this blog

The Professional HTML Cheatsheet For beginners in 2024 for free

Top 3 Websites to get copyright free images in 2024 for free

Top 10 cmd commands everyone should know