Hoisting: meaning, definitions and examples

⬆️
Add to dictionary

hoisting

 

[ ˈhɔɪstɪŋ ]

Context #1

programming

Hoisting is a behavior in JavaScript where variable and function declarations are moved to the top of their containing scope during the compilation phase. This allows you to use a variable or function before it has been declared in your code.

Synonyms

Examples of usage

  • Hoisting allows you to call a function before it has been defined.
  • In JavaScript, variables can be used before they are declared thanks to hoisting.
Context #2

general

Hoisting can also refer to the practice of raising or lifting something up, often with a hoist or pulley system.

Synonyms

Examples of usage

  • The workers used a hoisting mechanism to lift the heavy equipment onto the roof.
  • The hoisting of the flag signaled the start of the event.

Translations

Translations of the word "hoisting" in other languages:

🇵🇹 elevação

🇮🇳 उठाना

🇩🇪 Heben

🇮🇩 pengangkatan

🇺🇦 підйом

🇵🇱 podnoszenie

🇯🇵 持ち上げること

🇫🇷 levage

🇪🇸 elevación

🇹🇷 kaldırma

🇰🇷 들어올리기

🇸🇦 رفع

🇨🇿 zvedání

🇸🇰 zdvíhanie

🇨🇳 提升

🇸🇮 dvigovanje

🇮🇸 lyfta

🇰🇿 көтеру

🇬🇪 აყვანა

🇦🇿 qaldırma

🇲🇽 elevación

Word origin

The term 'hoisting' in programming originated from the concept of physically hoisting something up, like a flag or heavy object. In JavaScript, hoisting was introduced to handle variable and function declarations in a way that allows for flexibility in coding. The idea of hoisting has become a fundamental aspect of understanding how JavaScript code is executed.

See also: hoist.