Coder Social home page Coder Social logo

sundayjavascript's People

Contributors

jangdo avatar lutece avatar

Watchers

 avatar

sundayjavascript's Issues

스트릭트 모드

P.35 하단
"use strict"
이 선언은 마치 변수에 저장하지는 않는 문자열처럼 보이지만, 스트릭트 모드를 지원하는 자바스크립트 엔진은 이를 인식하고 스트릭트 모드로 전환합니다. 이 문법은 ECMAScript 3 문법과 호환되도록 만든 것입니다.

다음페이지에 스트릭트 모드를 지원하는 브라우저가 나오는데
익스10+, 파이어폭스4+...
그렇다면 익스10 미만 버전은 스트릭트 모드를 지원하지 않는지...?
또, ECMAScript 3 문법과 호환돼도록 만든 것이라는데...ECMAScript 3 는 이전 버전인데...앞뒤가...
이해가 잘 안됨.

배열 sor() 메서드

function compare( num1, num2 ){
return num1 - num2;
}
var nums = [3, 1, 2, 100, 4, 200];
nums.sort(compare);

console.log(nums);

해시테이블이란?

6장 객체지향프로그래밍(P.213 하단)
ECMAScript객체를 해시테이블이라고 생각하면 이해하기 쉽다.라고 표현

p.249 예제

function SuperType(){this.property = true;}

SuperType.prototype.getSuperValue = function(){return this.property;}

function SubType(){this.subproperty = false;}

SubType.prototype = new SuperType();
SubType.prototype.getSubValue = function(){return this.subproperty};

var instance = new SubType();
alert(instance.getSubValue());

책에는 값이 true라고 써있는데 해보니 false가 떨어짐...

깊은복사에 대해 자세히 알아보기

41p, 42p
얕은 복사, 깊은복사의 예제가 하나씩 나오는데...

좀더 자세히 깊은복사에 대해 알아보기

예제

function copy( arr1, arr2 ){
for(var i = 0; i < arr1.length; ++i){
arr2[i] = arr1[i];
}
}

var nums = [];
var samenums = [];
for(var i = 0; i < 10; ++i){
nums[i] = i+1;
}

copy(nums, samenums);
nums[0] = 400;
console.log(samenums[0]);

인터프리터 환경이란?

교재 P.19 상단

<script> 요소 내부의 자바스크립트 코드는 위에서부터 차례로 해석됩니다. 이 예제에서는 먼저 함수 정의가 해석되어 **인터프리터 환경 내부**에 저장됩니다.

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.