Sergey Shishkinserj-aleks.hashnode.dev·Jan 7, 2025namespacesВ PicoLisp реализована концепция пространства имен. Во-первых, естественно, чтобы избежать потенциального конфликта имен при создании, например транзитивных символов, по умолчанию создается временное пространство имен, Здесь сам автор PicoLisp отвеча...picolisp
Lim Woojaejaylog.hashnode.dev·Dec 25, 2024[CS Fundamentals] Demystifying Variable Scope: Best Practices and Common Pitfalls with PythonIntroduction In computer science, it is so important to fully understand a variable scope as you may face many errors without knowing how they work or your program prints an unexpected output. This article will deeply explain about local, global vari...unboundlocalerror
Lim Woojaejaylog.hashnode.dev·Dec 19, 2024[Python] How Closures and Decorators in Python Work Together to Simplify CodeWhat Is Closure? A closure is created when a function (the inner function) is defined within another function (the outer function) and the inner function references variables from the outer function. def func1(): a = [] def func2(v): ...Pythonclosure
고라니드로koranidro.hashnode.dev·Nov 30, 2024[TypeScript] 제스처로 대화하기. #13 - 플릭(with. 범위) 편이번 편은 이전 편으로부터 이어집니다. 플릭의 이동 범위를 제한하고 싶다면 어떻게 해야 할까요? 단순히 계산 시마다 대상이 유효한 범위 내에 있는지 확인할 수도 있을 것입니다. 하지만 이는 다소 비합리적으로 보일 수 있습니다. 우리는 조금 더 영리한 방법으로 이를 해결할 수 있습니다. 최대 변위 변위가 아래를 만족해야 한다고 합시다. $$\begin{aligned} & s \leq k \end{aligned}$$우리는 수식을 다음과 같이 전개...[TypeScript] 제스처로 대화하기.JavaScript
gayatri kumargeekee.hashnode.dev·Nov 7, 2024Memory Management in JavaScript: Understanding Scope!Imagine you’re searching for hidden treasures, and each treasure is locked inside a box. Some boxes are accessible to everyone, while others are hidden deep inside locked rooms. In JavaScript, scope is like these treasure boxes—determining where vari...50 likesWeb Developmentjs
Pedram Badakhchanipedbad.hashnode.dev·Oct 18, 2024Understanding JavaScript Scope: A Beginner's Guide to Variable VisibilityEver found yourself scratching your head because a variable or function in your JavaScript code wasn’t working where you expected? It can feel like your code is playing hide and seek. The key to this mystery is something fundamental but often misunde...28 readsIntroduction to ProgrammingJavaScript
Vitthal Korvanvitthal-korvan.hashnode.dev·Oct 10, 2024Scopes in JavaScriptWhat are scopes? In JavaScript, scope defines the accessibility or visibility of variables and functions at different parts of your code. Understanding scope is essential to ensure that variables are only available where needed and to avoid conflicts...JavaScript CoreJavaScript
Alex Xelaallaboutjs.hashnode.dev·Sep 28, 202401.Variables and DatatypesData Types in JavaScript JavaScript supports several types of data that variables can store. Here are the main ones, along with examples: 1. Numbers Numbers in JavaScript can be either integers or floating-point values. JavaScript treats both as the ...JavaScript
Abeer Abdul Ahadabeer.hashnode.dev·Sep 27, 2024Scopes and Hoisting in JavaScript - Comprehensively ExplainedScopes in JavaScript Scope in JavaScript means the area in your code where certain variables or functions can be used or seen. It defines where you have access to specific values or actions. There are mainly two types of scope in JavaScript: Global ...JavaScriptJavaScript
Borhan Uddincodernex.hashnode.dev·Sep 26, 2024Mastering JavaScript Closures: A Comprehensive GuideIntroduction: Closures are a fundamental concept in JavaScript that allows functions to access variables from their outer scope, even after the outer function has returned. This ability gives JavaScript its unique approach to state management and fun...closures in javascript