leonardomso / 33-js-concepts

📜 33 JavaScript concepts every developer should know.
MIT License
63.94k stars 8.95k forks source link

Add Javascript Challenging Question for often asked in Interview #557

Open KomalSrivastava opened 1 month ago

KomalSrivastava commented 1 month ago

Summary

Changes Made

  1. Added JavaScript Questions:

    • Included small but tricky JavaScript questions covering topics like closures, hoisting, scoping, and the event loop.
  2. Added One Article in the Article Section:

    • A new article was added, explaining key JavaScript concepts.
    • Provided a link to this article for further reading.

Reasoning


JavaScript Often Asked Small but Tricky Questions

  1. What is the difference between == and === in JavaScript?

    • == compares values with type coercion.
    • === compares both value and type strictly.
  2. What are closures in JavaScript?

    • A closure is a function that retains access to its lexical scope, even when executed outside of that scope.
  3. Explain event delegation.

    • Event delegation is a technique where a single event listener is added to a parent element to handle events from its child elements.
  4. What is the output of the following?

    
    console.log(typeof null); // "object"

@leonardomso Hello Sir, Kindly assign me this issue i will work on it!! Thank you..

ryzen-xp commented 1 month ago

/assign