JavaScript Tutorial For Beginners #12 - If Statements

preview_player
Показать описание
Hi all. In this JavaScript tutorial for beginners, we're going to take our first look at control flow - if statements. If statements are alive everywhere you look in the world. If you perform an action, there will be a corresponding reaction or result. This concept is used in programming too.

If statements can be used to check a variety of things in JavaScript, such as whether a certain element has a particular class associated with it, or to check if an element is showing on a web page. They're an extremely important aspect of JS, and will be VERY helpful in your future coding!

As usual, any questions just ask away :).

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

Рекомендации по теме
Комментарии
Автор

In that intro lies the most glorious analogy I've heard in my life!

vincentwong
Автор

Finally the fun part. "IF you take a crap in public, you'll wind up in prison" LMAO that right there woke me the F up!

kenkvt
Автор

Cool intro, I switch on the beginning of your videos multiply times only to hear it

obito
Автор

Thanks these videos are really helpful. Keep the good work alive :D

debashishbairagi
Автор

20 videos and I finally got it! Thank you.. 1 more subscriber!

terriejonesarellano
Автор

very str8 forward and clear. Love the examples. I get the syntax of JS a bit more

Aborichinal
Автор

Big Appreciation 🎩 for my Mentor @TheNetNinja from PAKISTAN

FakeCoder
Автор

You know the "hack" teaching beginners by making things "simple", unlike others "a bunch of codes getting nowhere".

willwill
Автор

My bracket live preview isn't working ..how to connect to browser

sanisan
Автор

Question - Noticed you put the <script> tag in the body of the .html page. Can you clarify when you would put the tag in the <head> and when you would put it in the body. (I do know the placement order in the body matters)

kristencordes
Автор

What I don’t understand is the combination of what I would called a regular statement like “I like meat” and using num to get the true or false return. Is there an example that we use in daily life or on a website that would help clarify why we would ever use nums instead of just saying if”I like meat” = true else = false? Thank you btw these videos are saving me!

sarabreewolf
Автор

hii netninja
how do you divide the screen into two pages?its easy to check n iam not getting this
thanks

trinathamandu
Автор

Shawn: (set myNum to 10)
Also Shawn: myNum is greater than 10

lstrins
Автор

Question: I am confused on the part where you stated that var youLikeMeat = False, you if statement was true. How was that so if the value for if you like meat was set to a value of false.

aliciafrazier
Автор

I am getting 'document is not defined' error after excluding same code which is mentioned in video

asthagaur
Автор

My how times change... if you take a crap in public and it's San Francisco you won't get a fine. If you yell at someone that took a crap in public in San Francisco you'll go to jail for not being compassionate.

vincecaruso
Автор

Sir, I love your videos and and I am really thankful for putting this online, I am trying to follow your exact steps so I also downloaded Brackets but I don't know why I get ESLint and JSLint errors for example " document.write can be a form of eval" or "document is not defined." Could you tell me how to deal with this? Much appreciated..

alexandrucurca
Автор

5:32 I hope you mean that my number is greater than 9.

happyhuman
Автор

You are speaking to my like I know nothing and that works for me... You don't assume I just know and I have to research the secret words in your videos

hilliparterable
Автор

I cant edit code in Console.
Tried to edit true ===> false, and the Chrome does not allow me to edit or change anything in Console.
All I can do is rewriting all the blocks... Frustrating

AleksaCar-bkrx