Fearlessย โขย 21h
๐ Day 2 of 21 โ JavaScript Learning Journey Topic: Operations & Conditional Statements ๐น Operations in JavaScript Arithmetic: + - * / % Assignment: = += -= Comparison: == === != > < >= <= Logical: && || ! ๐น Conditional Statements // if statement if (age >= 18) { console.log("You can vote!"); } // if...else if (num % 2 === 0) { console.log("Even"); } else { console.log("Odd"); } // if...else if...else if (marks >= 90) { console.log("Grade A"); } else if (marks >= 60) { console.log("Grade B"); } else { console.log("Grade C"); } // switch statement switch(day) { case 1: console.log("Monday"); break; case 2: console.log("Tuesday"); break; default: console.log("Other Day"); } โจ Key Takeaway: Operations let you calculate & compare, while conditional statements help your code make decisions. ๐ Stay tuned for Day 3 โ Loops in JavaScript ๐ #21DayJavaScript #JavaScript #Coding #LearnToCode
Keen Learner and Exp...ย โขย 1m
Day 2 of learning python as a beginner. Topic: Conditional Expression Conditional expression pose a condition (if and Else statements). They help program take decision based on the condition given. They can be used inside a function or while assign
See MoreStudent @Geethanjali...ย โขย 1y
๐ The Wait is Over! ๐ The video is finally out! ๐ข Watch JavaScript Conditional Statements & Ternary Operator - Full Tutorial & Examples now on Learn With Akhilesh! ๐๐๐ป Master JavaScript conditionals and the ternary operator with my step-by-s
See MoreDeveloper | entrepre...ย โขย 13d
Today I got to learn some interesting low level stuff like : โข if condition == text ( canโt perform operation bcz not a str ) โ โข if condition == โtextโ ( can compare bcz itโs a str )โ โข power of nested if-else statement ๐ Github :
Download the medial app to read full posts, comements and news.