Eloquent Javascript: Chapter 1 (Values, Types, and Operators)

  Рет қаралды 24,852

Chee-Tash

Chee-Tash

Күн бұрын

Пікірлер: 48
@chee_tash
@chee_tash 3 жыл бұрын
Information from the slides Slide Information Data -“Inside a computer’s world, there is only data[…]” - P. 11 -All data stored on a computer is by bits. Two valued things 0s and 1s Binary Digits -So anything you want the computer to know or save, ultimately gets interpreted or converted to bits -So if we want to type 13 in a word document and save it… 00001101 0 0 0 0 1 1 0 1 128 64 32 16 8 4 2 1 Values -Separating bits in chunks -Every value has a type -To create a value, just invoke its name -Let x = 5; Types in Javascript Number -Numeric values -A numeric value of 13 will cause the bit representation of that number to be saved into memory on the computer -64 bits to represent a single number value -2^64 possibilities -No all whole numbers less than this fit -Some bits will store the sign, others the decimal -Whole numbers can be precise, fractional..unfortunately not Operators in Javascript -+, -, *, /, % -Modulo is an operator that results in whatever is remaining after division -4 % 2 = 0 So 2 goes into 4, two times, with 0 left over -16 % 5 = 1 5 goes into 16, three times with 1 remaining Special numbers Infinity -Infinity NaN (still a typeOf Number) Will get this when s calculation does not yield a meaningful result Strings -Used to represent text `Hello` ‘Hello’ “Hello” -Modeled as a series of bits, just like numbers Unicode Number is assigned to every character 16 bits per string element -Escape Characters \t \” -Concatenation + Combines two strings together “con” + “cat” will yield “concat” Be mindful of spaces when you concatenate… -Template Literals `half of 50 is ${50/2}` Injecting javascript Result is computed, converted to a string, and included at that position Unary Operators -Uses one value -Written as words -Example: typeof operator Console.log(typeof 4.5) Yields number -(-) can be both a unary and binary operator Boolean Values -True/False -==, ===, !=, !==, ,= -Numbers are not the only things that can be compared -Console.log(“Aardvark” < “Zoroaster”) true So javascript compares letter by letter If first character’s Unicode value is less than or greater than the second, we are finished If characters are the same, then we move to the second If both strings end at the same length, then they are equal, otherwise the longer string is greater. Logical Operators -And && True only if values on both sides of it are true -Or || True if value on just one side is true -Not ! Flips the value given to it !true = false -Precedence || - && - comparison operators Empty Values -Null and undefined Absence of a meaningful value Carry no information Some operations will yield an undefined Not a huge difference between these two Automatic Type Conversion -Type coercion JS will convert that value to the type it needs. When an operator is applied to the wrong value -Console.log(8*null) --- 0 -Console.log(“5”-1) --- 4 -Console.log(“5”+1) --- 51 -Console.log(“five”*2) --- NaN -Console.log(false == 0) --- true -== when types differ on both sides JS will try and convert one of the sides to the other side’s type -When null or undefined, only will produce true of both sides are null or undefined -===, !== Used to check precisely true, no type coercion 0 == false will be true 0 === false will be false Short Circuiting of Logical Operators -|| will return the value to its left when it can be converted to true, else it will return the value to its right -&& works in the opposite way Returns the value to its left it can be converted to something false Else it returns the value on the right -True || X X will never be evaluated in this case -False && X Opposite in this case, X not evaluated because False on the left hand side Same as doing if(false) {X}
@khempaneru9824
@khempaneru9824 4 күн бұрын
Please complete this book . Your videos are really amazing !
@Abulkhair1995
@Abulkhair1995 11 ай бұрын
this is the most appreciated way to learn JS stright from the book ......
@MarquisDeSade415
@MarquisDeSade415 Жыл бұрын
thank you for the videos, please keep it up. I am starting with eloquent Javascript but I will defensively go back to watch most books.
@chee_tash
@chee_tash Жыл бұрын
Absolutely, I just finished with Chapter 6, might take a small break and also start doing videos about the Clean Coder by Robert Martin.
@MusicsFree
@MusicsFree 2 жыл бұрын
That is Amazing book, so I'm looking any teacher for learning this so finally I found my instructor of eloquent JavaScript, Thanks for this series, I will complete this series with absorb there their Concepts InshaAllah i will easily now!! 😊👌👍
@abuhanzla4058
@abuhanzla4058 11 ай бұрын
Plz complete this book! ❤
@amanikanezamulume320
@amanikanezamulume320 Жыл бұрын
I need this. This is big help for me. I can be working while listening to your audio. Thank you bro 🙏 🙌 kindly finish the whole book 📖
@chee_tash
@chee_tash Жыл бұрын
Thank you for your kind words. I really should get back to this book, I have been so focused on some other books I've been doing for the channel that its been hard to find time. I will do my best though!
@abukarzidii4774
@abukarzidii4774 3 жыл бұрын
Asc teacher, I am one of the students attached to our lessons. Many Somali students are with you. my Neme Abukar Mohamed Mohamud somalia JUST University 🇸🇴🙏😍🇸🇴
@chee_tash
@chee_tash 3 жыл бұрын
Much love! Thank you so much. I try to do my best with the videos, if anything is ever unclear I will do my best to clarify
@therealdeal2247
@therealdeal2247 Жыл бұрын
Was gonna read the book but this is way better! Thanks man!
@chee_tash
@chee_tash Жыл бұрын
Absolutely, I hope to become better with time in presenting this information. Check out the book "Clean Code" that I am doing videos for right now as well and let me know what you think
@TalsonHacks
@TalsonHacks 3 жыл бұрын
Gonna be an epic series!
@chee_tash
@chee_tash 3 жыл бұрын
I apologize for not doing a video on this series in a while. Ive been focused on 1984 right now, hopefully soon I can get a new JS video up...
@TalsonHacks
@TalsonHacks 3 жыл бұрын
@@chee_tash I've read the book few months ago, it deserves a series itself xD.
@chee_tash
@chee_tash 3 жыл бұрын
@@TalsonHacks Hold me to it, I will have another JS video out by the end of this weekend. O totally, I started doing videos on 1984 as well if you are interested!
@chee_tash
@chee_tash 3 жыл бұрын
New Episode! :) kzbin.info/www/bejne/aYSrfmVtfJJqqZY
@shanegeary6205
@shanegeary6205 2 жыл бұрын
Thank you for doing this! Please keep them coming.
@myam754
@myam754 11 ай бұрын
Thank you for this! Subscribed!
@sanapraise-hg4ed
@sanapraise-hg4ed Жыл бұрын
please complete the book, i appreciate your work
@Babayaga-i2t
@Babayaga-i2t Жыл бұрын
You doing a great work ❤❤
@yourneedsmet
@yourneedsmet Жыл бұрын
Thank you!!! So excited
@saadsakib9463
@saadsakib9463 8 ай бұрын
Very nice job bro 👏💯❤️
@Rakeshsingh-gx2ok
@Rakeshsingh-gx2ok 2 ай бұрын
please complete the book
@elenac.3750
@elenac.3750 Жыл бұрын
Great series! thanks for sharing this!
@chee_tash
@chee_tash Жыл бұрын
Thank you for listening to it! I just started a series on the book "Clean Code" as well if you are interested
@amnasaghir791
@amnasaghir791 Жыл бұрын
It's very helpful Thank you ❤
@northstarcode8675
@northstarcode8675 3 жыл бұрын
Great content. Thank you.
@joydebnath2658
@joydebnath2658 Жыл бұрын
💖take love
@harshnaik6989
@harshnaik6989 9 ай бұрын
This is awsome
@BavneetKaurSekhon
@BavneetKaurSekhon 9 ай бұрын
please complete this book 🙂🙂
@Ricebow11
@Ricebow11 2 жыл бұрын
Hello, jw, I really like the read along since I'm not great at it and tends to fall asleep. In your channel, srw the book video from start to finish?
@chee_tash
@chee_tash 2 жыл бұрын
Hey thank you so much for watching! Sorry, I don't quite follow, reading the book you mean?
@Ricebow11
@Ricebow11 2 жыл бұрын
@@chee_tash what I meant to ask was, is your book reading from chapter 1 to ending?
@chee_tash
@chee_tash 2 жыл бұрын
@@Ricebow11 o ok gotcha! It kind of started off like that going through entire chapters. Lately though, I have been trying to do videos on one specific topic of JS.
@aadil1474
@aadil1474 4 ай бұрын
❤ from India🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
@ankitkumain
@ankitkumain 3 жыл бұрын
Is there any link from where i can get that ppt?
@chee_tash
@chee_tash 3 жыл бұрын
Thank you for your message. Happy Thanksgiving! Ugh I have not figured out a good way to do this! One thing I did in the most recent JS videos that had a PPT, I posted the text version in the description. I can totally do that for this video. I can try to get that updated tomorrow/over the weekend
@chee_tash
@chee_tash 3 жыл бұрын
I actually found some time today to post the powerpoint info in the description to the video. I know its not 100% the same, but for now this is the best I can do. I appreciate you listening and tuning in. Let me know if you have any questions!
@ankitkumain
@ankitkumain 3 жыл бұрын
@@chee_tash Hi Chris, First of all Happy Thanksgiving. Thanks for adding the ppt material. PS - You can add the notes in notion and provide its link or you can add ppt to a google drive and provide the links. But this is just a suggestion it's upto you to consider it or not. I love your content. Lots of love.
@chee_tash
@chee_tash 3 жыл бұрын
@@ankitkumain o my gosh thank you so much for these suggestions! I am going to look into them. Yea these sound better than my current method 😅
@adejuyitansamuelolusegun
@adejuyitansamuelolusegun Жыл бұрын
Please you didn't lay more emphasis on the remaining chapters, can you please do?
@YadavMohansingh-r6n
@YadavMohansingh-r6n Ай бұрын
😊
@daniemedia
@daniemedia 11 ай бұрын
this book is surely not for a newbie 😅
@daniemedia
@daniemedia 11 ай бұрын
it has been kicking my butt for months
@chee_tash
@chee_tash 11 ай бұрын
Yea the book is written in a certain way that I also find hard to follow sometimes and have to utilize other resources to help explain things
Eloquent Javascript: Chapter 2 (Program Structure)
54:14
Chee-Tash
Рет қаралды 5 М.
👍 Eloquent JavaScript is a great book for beginners
11:35
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
I Scraped the Entire Steam Catalog, Here’s the Data
11:29
Newbie Indie Game Dev
Рет қаралды 792 М.
Understanding Immutability in JavaScript
9:41
Deborah Kurata
Рет қаралды 6 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 192 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 157 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 258 М.
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
10:39
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН