Sourav Mandal
Sourav Mandal

@souravcode

9 Tweets 5 reads Jun 07, 2022
βš’ Control Statement and Loops in JavaScript!
If Else β†’ Switch Statement
↓
While Loop β†’ Do-While Loop
↓
For Loop
A Thread ↓↓↓
⚠️ Notice ⚠️
❑ This Thread is a part of JavaScript. I will discuss all JavaScript, if you start learning JS Then I can help you.
❑ we will try to clear the basic concept Tutorials of JavaScript in 50 Days
{ Day-35 / 50 }
❍ If Else
❍ Switch Statement
❍ While Loop
❍ Do-While Loop
❍ For Loop
➊ What is if or else?
➜ The if/else statement executes a block of code if a specified condition is true. If the condition is false, another block of code can be executed.
βž‹ Switch Statement
➜ The JavaScript switch statement is used to execute one code from multiple expressions. It is just like else if statement.
➌ While Loop
➜ The β€œwhile loop” is executed as long as the specified condition is true. Inside the while loop, you should include the statement that will end the loop at some point in time.
➍ Do-While Loop
➜ The do…while loop is very similar to while loop. The only dithe fference is that in do…while loop, the block of code gets executed once even before checking the condition.
➎ For Loop
➜ The `for` loop consists of three optional expressions, followed by a code block:
That's it for this thread. If you found it useful!
🀝 Follow me
@sourav_code βœ…
πŸ“’ Hey, I am a Web Developer From India, Helping people learn web development. I Tweet Around.
HTML
CSS
JavaScript
React, & More Tips & Web Development Content.
Like πŸ’–
Retweet

Loading suggestions...