🔎Definition---JavaScript Promises are objects used to represent the eventual completion (or failure) of an asynchronous operation. They are widely used in modern JavaScript to handle asynchronous tasks in a more readable and manageable way, compared to traditional callback-based approaches. A Promise can be in one of three states:Pending: Initial state, neither fulfilled nor rejected.Fulfilled: The operation completed successfully.Rejected: The...
Monday, March 4, 2024
Saturday, June 10, 2023
Run React Globally
Posted by Zuhair Ahmed on June 10, 2023 with No comments
If you have problems running create-react-app in text editors but the package is installed globally. So here is the SOLUTION-------------Open PowerShell as an administrator. You can do this by right-clicking on the Windows Start button and selecting "Windows PowerShell (Admin)".In the PowerShell window, run the following command to check the current execution policy:powershellCopy codeGet-ExecutionPolicy
The output will be one of the following:Restricted:...
Sunday, May 7, 2023
Logical Shifting COA
Posted by Zuhair Ahmed on May 07, 2023 with No comments
SHR stands for "Shift Right" and it is used to shift the bits in a register or memory location to the right. When a number is shifted to the right using SHR, the least significant bit (LSB) is replaced by a zero, and the most significant bit (MSB) is shifted out and lost. The other bits are shifted to the right by the specified number of positions....