Hoisting: meaning, definitions and examples

⬆️
Add to dictionary

hoisting

 

[ ˈhɔɪstɪŋ ]

Noun
Context #1 | Noun

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.

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 | Noun

general

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

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

Etymology

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.

Word Frequency Rank

With rank #15,259, this word belongs to specialized vocabulary. While not common in everyday speech, it enriches your ability to express complex ideas.