lutece / sundayjavascript Goto Github PK
View Code? Open in Web Editor NEWThis is a javascript study's repository in sunday morning
This is a javascript study's repository in sunday morning
.js 파일 생성후 쉘프로그램 실행하기
P.35 하단
"use strict"
이 선언은 마치 변수에 저장하지는 않는 문자열처럼 보이지만, 스트릭트 모드를 지원하는 자바스크립트 엔진은 이를 인식하고 스트릭트 모드로 전환합니다. 이 문법은 ECMAScript 3 문법과 호환되도록 만든 것입니다.
다음페이지에 스트릭트 모드를 지원하는 브라우저가 나오는데
익스10+, 파이어폭스4+...
그렇다면 익스10 미만 버전은 스트릭트 모드를 지원하지 않는지...?
또, ECMAScript 3 문법과 호환돼도록 만든 것이라는데...ECMAScript 3 는 이전 버전인데...앞뒤가...
이해가 잘 안됨.
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객체를 해시테이블이라고 생각하면 이해하기 쉽다.라고 표현
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> 요소 내부의 자바스크립트 코드는 위에서부터 차례로 해석됩니다. 이 예제에서는 먼저 함수 정의가 해석되어 **인터프리터 환경 내부**에 저장됩니다.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.