View profile

πŸ“¬ Weekly CodeOz #Webdev - Github Repo you need to mark - Issue #10

πŸ“¬ CodeOz's Letters ! πŸ’»
Hello everyone! This week I will share with you some Github repository that will bring you a lot of knowledges! You should mark them!
GitHub - AllThingsSmitty/css-protips: A collection of tips to help take your CSS skills pro
πŸ“š Cheatlists
GitHub - LeCoupa/awesome-cheatsheets: πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» Awesome cheatsheets for popular programming languages, frameworks and development tools.
GitHub - trekhleb/javascript-algorithms: πŸ“ Algorithms and data structures implemented in JavaScript with explanations and links to further readings
🧹 Clean code
GitHub - ryanmcdermott/clean-code-javascript: Clean Code concepts adapted for JavaScript
🌎 How web works
πŸ“– Free programming books
GitHub - EbookFoundation/free-programming-books: Freely available programming books
?Quizz of the week
Answer + explication πŸ‘‡
Answer: B
ο»ΏWhen you are dealing with β€˜this’ in a function, β€˜this’ value depends on how you are invoking the function. If you invoke a methods through an object, the thisvalue will be equal to this object! so when you are doing user.action() the value of this is equal to user!
But when you are doing const newFunction = user.action, you are storing the methods into a new variable, and when you are doing newFunction(), you are invoking the function without an object. So the value of β€˜this’ is undefined!
If you need to have the β€˜this’ value into newFunction you need to use apply to pass the context into the function, so if you are doing newFunction.apply(user) you will have β€œ@Code__Oz”!
Did you enjoy this issue? Yes No

I'm sharing with you some articles & resources about web development! πŸ’»

🎁 Subscribe for FREE to get a Javascript Chealist!

Each week we will talk about a subject related to web development (javascript, typescript, vuejs, html, css and others!) πŸ“š

And I will add more bonuses like free courses recommendation or cheatlist 🎁

Check my latest article πŸ‘‡

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.