Learn JavaScript – Telegram
Learn JavaScript
100K subscribers
850 photos
16 videos
476 files
108 links
JavaScript Training Courses

💳 Paid ads by: https://telega.io/c/JavaScript_Trainings

🔰 Linkedin: @Linkedin_Learning
🧿 Udemy: @Zero_To_Mastery
📦 Python: @LearnPython3
🔅 Web Development: @Webdev_Trainings
Download Telegram
🖥 Events in JavaScript

Events are actions or occurrences that happen in the browser, often as a result of user interactions or other changes in the environment.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
16👍3🔥1
🔅 Advanced TypeScript: Generics and Conditional Types

📝 Discover how TypeScript can transform your JavaScript applications from bug-prone to bulletproof through generics and conditional types.

🌐 Author: Eve Porcello
🔰 Level: Advanced
Duration: 1h 10m

📋 Topics: TypeScript

🔗 Join Learn JavaScript for more courses
Please open Telegram to view this post
VIEW IN TELEGRAM
16👍1
Advanced TypeScript: Generics and Conditional Types.zip
130.8 MB
📱Learn JavaScript
📱Advanced TypeScript: Generics and Conditional Types
Please open Telegram to view this post
VIEW IN TELEGRAM
13
Media is too big
VIEW IN TELEGRAM
🔅 Read JSON File into HTML with JavaScript Fetch API
🔥115👍5
⌨️ Advanced JS Cheat sheet
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍2518
This media is not supported in your browser
VIEW IN TELEGRAM
🔅 Fetch API in 4 Minutes (GET, POST, PUT, DELETE | JSON)
21👍2🔥2
🔅 Learning TypeScript

📝 Learn TypeScript. Write more maintainable, reusable code by integrating TypeScript into your existing JavaScript applications.

🌐 Author: Jess Chadwick
🔰 Level: Beginner
Duration: 1h 11m

📋 Topics: TypeScript

🔗 Join Learn JavaScript for more courses
Please open Telegram to view this post
VIEW IN TELEGRAM
13
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6👍3
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
This is a snippet from JavaScript. This pattern of passing boolean params to methods is called a "Boolean trap", and let me explain why it's called so...

Imagine you are reading the method or function call. You have no idea what each param means unless you go and open the function definition. It's a big blow to readability 🤕

Better patterns would be to use a config object, where we clearly indicate what each field does. In other languages, you would use similar syntaxes, such as a builder pattern in Java.

☝️ Do note that it is still acceptable to use Boolean arguments in some places, such as

user.setAdmin(true)

Here we clearly know what the Boolean is doing, and so it is acceptable
12👍3