Giter Site home page Giter Site logo

1주차 질문 about javascript-study HOT 4 OPEN

ritajeong avatar ritajeong commented on August 12, 2024
1주차 질문

from javascript-study.

Comments (4)

Tanney-102 avatar Tanney-102 commented on August 12, 2024

15장 질문

  • let, const 키워드에 대해 var 키워드와의 차이점을 중심으로 설명해주세요
  • 함수스코프와 블록스코프의 차이점을 말해주세요

from javascript-study.

yujo11 avatar yujo11 commented on August 12, 2024

14장 전역 변수의 문제점

1번. 다음 코드에서 (1)과 (2)의 출력 값은?

var a = 'global';

function foo(){
  var a = 'local';
  
  console.log(a); // --- (1)
}

foo();
console.log(a); // ---(2)

2번. 다음 코드에서 (1)과 (2)의 출력 값은?

var a = 'global';

function foo(){
  a = 'local';
  
  console.log(a); // --- (1)
}

foo();
console.log(a); // --- (2)

3번. 전역 변수를 사용했을 때 발생할 수 있는 문제점에 대해서 말씀해주세요.

from javascript-study.

al-bur avatar al-bur commented on August 12, 2024

4장 질문

  • 변수라는 메커니즘은 왜 존재하는지 설명해주세요
  • 변수에 값을 재할당 할 때 메모리 공간에서 일어나는 상황을 설명해주세요.
  • 호이스팅이 무엇인지 설명해주세요

from javascript-study.

ritajeong avatar ritajeong commented on August 12, 2024

13장 질문

  • 스코프 체인과 실행 컨텍스트, 렉시컬 환경에 대해 설명해주세요.
  • 동적 스코프와 렉시컬 스코프의 차이점에 대해 설명해주세요. 자바스크립트는 어떤 스코프를 따르나요? 상위 스코프를 결정하는 기준은 무엇인가요?

from javascript-study.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.