Angular 🇺🇦 - practical notes
1.63K subscribers
1.6K photos
1 file
532 links
Angular - practical notes

This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
Download Telegram
📵 Interview Questions: Implement Instanceof

#js #interview #instanceof

The instanceof operator in JavaScript can be used to determine whether an object is an instance of another object. However, the instanceof operator has some limitations, such as:

🥫The instanceof operator can only determine objects directly connected to the prototype chain.
🌯The instanceof operator cannot detect objects with cyclic prototype chains.
Therefore, the above code provides a more general instanceof function that can determine the relationship between any two objects.

The implementation principle of this function is:

🍗The function instanceof receives two parameters: left and right.
🥞First, the code checks to see if the number of parameters is 2, and if not, throws an error.
🥚Next, the code checks whether the left operand left is null. If so, it returns false directly, because null cannot be an instance of any object.
🧀Then, the code checks whether the type of the left operand left is an object. If not, it returns false directly, because only objects can be instances of the constructor.
🥖Next, the code uses Object.getPrototypeOf() to obtain the prototype of the left operand left and assigns it to the variable proto.
🍞In a loop, the code continues to traverse proto’s prototype chain until proto is null.
🥐In the loop, the code checks whether the prototype of the right operand right is equal to the current proto. If they are equal, it means that the left operand left is an instance of the right operand right and returns true.
🍠If no matching prototype is found at the end of the loop, that is, proto is null, it means that the left operand left is not an instance of the right operand right, and false is returned.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤️ Kickstart your new Angular project: A step-by-step guide

#angular #tailwind #eslint #jest #cypress #husky #guide

Requirements:

For the purposes of this guide, I’m assuming that you already have the following tools/libraries installed on your machine:

1. Node.js (I’m using v. 20.x.x)
2. Git
3. A code editor (I’m using Visual Studio Code), with ESlint, TailwindCSS IntelliSense extensions.


Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
🚱 Interview Questions: Implement a debounce anti-shake function

#js #interview #debounce
Please open Telegram to view this post
VIEW IN TELEGRAM
❤️ Multi-Language PDF Export in Angular

#angular #pdf #guide

Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
📄 Practices for the Sign-up Flow: Keep it simple

#guide

The sign-up form should ask only for essential information. In case the product requires additional information besides an email and a password, split the sign-up flow into several steps.
This media is not supported in your browser
VIEW IN TELEGRAM
Now the administration can receive donations through posts reactions 🌟

One star costs less than one UAH. Update Telegram and support this channel.
Please open Telegram to view this post
VIEW IN TELEGRAM
📵 Exploring the New JavaScript Feature: Records and Tuples

#js #records #tuples

⚠️ ECMAScript® 2024 (ES15)

Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1🔥1