freeCodeCamp's Array Method Practice, Equality and Strict Equality in Javascript (9)

preview_player
Показать описание
In this video from freeCodeCamp's Basic Javascript section we look at the following lessons: Stand in Line, Understanding Boolean Values, Use Conditional Logic with If Statements, Comparison with the Equality Operator, & Comparison with the Strict Equality Operator. In the Stand in LIne lesson we practice our array methods by pushing an element to an array, and shifting and element from the beginning of the array into it's own variable. We then return that variable. In the lessons after we learn about Booleans and their dual nature of either true or false. The concept of combing conditionals with true and false is introduced which opens a whole new world of possibilites in programming. Equality, we learn is expressed using "==" double equal signs. This should not be confused with assignment "=", which is what we use to assign values to variables. When we check if values are equal, the result will return either true or false. The number 1 and string 1, if checked for equality will return true because of type coersion. If we want to be strict about it we can use strict equality when checking values using "===". This will return false when comparing a number to its string equivalent.
Рекомендации по теме
Комментарии
Автор

this is most confusing part so far..T.T
i mean I understand how it came out, the part I think difficult was how you wrote "var removedElement"
if a total beginner, how would I know to write that code here,
without watching your Tutorial I would have got stuck here.

CowMeCow