menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

JS Basic c...
source image

Dev

1w

read

12

img
dot

Image Credit: Dev

JS Basic concepts that some people miss

  • Promises in JavaScript provide a cleaner and more readable alternative to callbacks, preventing callback hell.
  • Promises have stages like Pending, Fulfilled, and Rejected, making asynchronous code execution easier.
  • Promise method examples include Promise.all, Promise.allSettled, Promise.race, and Promise.any.
  • Throttling limits the execution of a function to prevent it from running more than once in a specified interval.
  • Debouncing delays function execution until there is a period of inactivity, useful for scenarios like search inputs.
  • Event Propagation includes Event Capturing, Target, and Event Bubbling phases in the DOM.
  • Concurrency in JavaScript involves handling multiple processes or threads executing simultaneously to avoid data conflicts.
  • DB Isolation Levels such as Read Uncommitted, Read Committed, Repeatable Read, and Serializable help maintain data consistency in Concurrent operations.
  • JS Strict Mode enforces rules to make the code more error-free by disallowing certain behaviors like using undefined for 'this' in the global context.
  • Prototype in JS refers to a blueprint containing shared properties and methods for instances created from a constructor function.

Read Full Article

like

Like

For uninterrupted reading, download the app