Тёмный

Javascript Flow Control: Branching and Looping 

Source Decoded
Подписаться 15 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@moveaxebx
@moveaxebx 9 лет назад
Guys, I would pay to listen your discussions. They are that good.
@jerlyon
@jerlyon 10 лет назад
Good stuff guys! I'm working through all your videos and finding it very helpful. I appreciate the insights as to why something should or should not be done.
@bebopj
@bebopj 8 лет назад
These videos are fantastic. I'm trying to boost my resume and having dabbled in VBA, these are crystal clear to me. Thanks so much.
@designstuffs
@designstuffs 9 лет назад
Hey thanks for these videos, you are making code approachable and understandable
@sourcedecoded2337
@sourcedecoded2337 10 лет назад
The double/triple equals (and related !) operators deserve a little more clarification. +Eric Andre is correct, the difference is that === (strict equal) and !== (strict not equal) take into account the type of the values. Douglas Crockford (and Jared) advocate that you always use the strict variants to help eliminate possible unexpected behavior. In Jared's code, you're likely to see something like this: var a = "4"; if (parseInt(a, 10) === 4) just to be safe.
@gambo2003
@gambo2003 3 года назад
I like your videos very much. So legendary
@burakbirer
@burakbirer 8 лет назад
Thanks for the videos!
@shozdott
@shozdott 5 лет назад
You guys make me want to watch Mrs Doubtfire Dino co-host doing underwater basket weaving lol jk
@Mike-vv7dg
@Mike-vv7dg 7 лет назад
you guys coming back?
@irrefl1672
@irrefl1672 4 года назад
Make more videos BRAH!
@EricAndre615
@EricAndre615 10 лет назад
Isn't the difference between == and === mostly to do with type? Maybe something like. var a = 4; if (a == "4") { // true } if (a === "4" { // false } I think it may be a little more complex, but basically it comes down to it has to be the same type?
@wilhelm.reeves
@wilhelm.reeves 4 года назад
shit! i just realized the video is from 2014 🔥
@w_ulf
@w_ulf 10 лет назад
Thanks again. var SourceDecoded(Jared, Ben) === greatVids();
@dragonore2009
@dragonore2009 10 лет назад
The thing I have trouble with is remembering all of the different types of javascript premade functions or methods, I wonder how y'all remember them in your everyday jobs, or is it you have used them so much it is second nature.
@sourcedecoded2337
@sourcedecoded2337 10 лет назад
Some of them I manage to remember (the once I use most frequently). Still, I've pretty much always got at least one MDN tab open in my browser. These days being "smart" isn't so much about knowing stuff, but knowing how to find stuff.
@asmartbajan
@asmartbajan 6 лет назад
+Source Decoded That's actually very similar to what Henry Ford (the founder of Ford) is said to have stated while on the witness stand in a court case long long ago. (The full story is in the book *Think and Grow Rich* I believe.)
@MrRicardo141
@MrRicardo141 9 лет назад
I like a different type of learning, where can I donate?
@asmartbajan
@asmartbajan 6 лет назад
21:51 Hang on a minute! The purpose of *var yes = a && true;* is not clear at all, because the function calls still return true and false respectively without that line. Plus, the variable (yes) is unused. EDIT: Nevermind. I tinkered with the code a bit: var myFunc = function(a) { var yes = a && true; console.log(yes); }; myFunc(2 == 2); // this logs "true" to the console myFunc(5 == 7); // while this logs "false"
@CuSolais
@CuSolais 9 лет назад
yeah i got a question, could you train me in person for free to cheap because my GOD you guys know your stuff and i learn better hands on lol.
@djamparo6636
@djamparo6636 8 лет назад
i still dont get the diference berween === and == in javascript I always use == because that is how i learned it. Here is a question: In javaEclipse you use System.out.print("something"); to print something to the console, but you use console.log("something"); Whats the difference because they are bouth java. Another question is: Why do you use var? in the eclipse environment you have to define what type of variable you're going to use like: int c=4; String greeting="hi"; boolean alive=true; whats the difference
@djamparo6636
@djamparo6636 8 лет назад
+Source Decoded please answer this you will (hopefully) answer my biggest question
@BenjaminHowe
@BenjaminHowe 7 лет назад
("12" == 12) results in true. ("12" === 12) results in false. The double equals is lazy, imprecise. If a number and a string "look" the same, it'll say they are the same. The triple equals is strict. A number 12 and a string "12" might look the same, but they are different types (number and string), so === will say they are different. === is the "equivalency" operator, meaning the two values have to actually be exactly the same (in type and value). Hope that helps.
@ibraheemkolawole7933
@ibraheemkolawole7933 7 лет назад
Dj Ace74 The difference between === and == has to do with coercion. E.g '2' == 2 evaluates to true, because the syntax parser in the execution environment thinks it's supposed to be a variable, cos '2' is a variable while 2 is a number/integer. If you really want 2 in the above example and not '2', then you use '2' === 2 which means strongly, important or whatever you wana call it. Hence the above will execute to false. This can really save you hours of debugging, when shit suddenly hits the fan.
@sol0matrix
@sol0matrix 6 лет назад
Dj Ace74 Java and Javascript are two completely different languages Javascript is a dynamic language meaning you don't need to specify types etc like string or number it will automatically assign data types for you. Console. log uses a print command under the hood.
@mspicer182
@mspicer182 10 лет назад
Awesome Ben! You should invite me on your show, that will really increase your following :D
@sourcedecoded2337
@sourcedecoded2337 10 лет назад
You should absolutely come and wow the world with your superior Nerdery!
@valentinvali6866
@valentinvali6866 9 лет назад
This is a great tutorial, but i all realy know all of this... can you guys make a tutorial about somthing usefull in a web page?
@Thegamer-yp7qq
@Thegamer-yp7qq 8 лет назад
what ( console. log ) means?
@willpeachable
@willpeachable 8 лет назад
+The gamer It is a function that means "log" or write what the statement gets equated to inside of the console. The console can be seen by running Chrome developer tools for example. Cmd + option + j on a Mac. So if you declare a variable for example: var a = 8 and then run the function with the variable as an argument - what goes inside the brackets... console.log(a) In the console you will see the result '8'
@V1kram
@V1kram 6 лет назад
Difference between a double == and triple === are. == Equal value === Equal value and Equal Type. What does that mean? Well, let me show you. Let's compare 12 with 12 and "12" with 12. Numbers inside Quotes " " are designated as STRING TYPE. Numbers without Quotes are simply just number types. So. 12 == 12 True "12" == 12 True as well. Because the Double == compares only the values not their types. But 12 === 12 True "12" === 12 False. Although the values are true, the data types aren't, thus a False output.
@THETANNERTHOMPSON
@THETANNERTHOMPSON 10 лет назад
first
@man_kind
@man_kind 8 лет назад
I don't understand how you can waste 15 min explaining basic math operators but you skip over === and a++ , a+=1 .... this stuff is used on a daily basis and they are very handy shortcuts. This video is very weak compared to the others. All the basics can be easily covered in 5 min, just telling people "go look it up" on all the hard stuff removes the need to watch this video....
Далее
Javascript is Easy Part 2
22:37
Просмотров 43 тыс.
Javascript Literals, Functions, and Constructors
50:03
Decompress small game, have time to play it!
00:35
Просмотров 10 млн
I Love *&@^#! JavaScript!
27:06
Просмотров 11 тыс.
Javascript is Easy
48:36
Просмотров 376 тыс.
JavaScript Promises  -- Tutorial for Beginners
37:05
Просмотров 122 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
In Javascript, Everything Is (or acts like) An Object
36:50
Not Everything Is An Object
25:51
Просмотров 5 тыс.
Learn JavaScript in 12 Minutes
12:00
Просмотров 2,7 млн
Decompress small game, have time to play it!
00:35
Просмотров 10 млн