JavaScript-Developer-I 문제 16
아래 코드가 주어졌을 때:
const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined ]);
카피의 가치는?
const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined ]);
카피의 가치는?
JavaScript-Developer-I 문제 17
아래에 있습니다:
<입력 유형="파일" onchange="미리보기 파일()">
<img src="" height="200" alt="이미지 미리보기..."/>
JavaScript 부분은 다음과 같습니다.
01 함수 미리보기파일(){
02 const 미리보기 = document.querySelector('img');
03 const 파일 = document.querySelector('입력[유형=파일]').파일[0];
04 //라인 4 코드
05 reader.addEventListener("로드", () => {
06 미리보기.src = 판독기.결과;
07 },거짓);
08 //라인 8 코드
09 }
04행과 08행에서 사용자가 로컬에서 이미지를 선택할 수 있도록 하는 코드
컴퓨터, 브라우저에 이미지를 표시하려면?
<입력 유형="파일" onchange="미리보기 파일()">
<img src="" height="200" alt="이미지 미리보기..."/>
JavaScript 부분은 다음과 같습니다.
01 함수 미리보기파일(){
02 const 미리보기 = document.querySelector('img');
03 const 파일 = document.querySelector('입력[유형=파일]').파일[0];
04 //라인 4 코드
05 reader.addEventListener("로드", () => {
06 미리보기.src = 판독기.결과;
07 },거짓);
08 //라인 8 코드
09 }
04행과 08행에서 사용자가 로컬에서 이미지를 선택할 수 있도록 하는 코드
컴퓨터, 브라우저에 이미지를 표시하려면?
JavaScript-Developer-I 문제 18
아래 코드를 참조하십시오.
let car1 = new Promise((_ ,reject)=> setTimeout(reject,2000,"Car1 충돌")); let car2 = new Promise(resolve => setTimeout(resolve,1500,"Car2 완료")); let car3 = new Promise(resolve => setTimeout(resolve,3000,"Car3이 완료됨")); 약속.레이스([car1,car2,car3])
.then(값=>{
let result = `${value} 경주.`;
}).catch(err=>{
console.log('대회가 취소되었습니다.',err);
});
promise.race가 실행될 때 result의 값은 무엇입니까?
let car1 = new Promise((_ ,reject)=> setTimeout(reject,2000,"Car1 충돌")); let car2 = new Promise(resolve => setTimeout(resolve,1500,"Car2 완료")); let car3 = new Promise(resolve => setTimeout(resolve,3000,"Car3이 완료됨")); 약속.레이스([car1,car2,car3])
.then(값=>{
let result = `${value} 경주.`;
}).catch(err=>{
console.log('대회가 취소되었습니다.',err);
});
promise.race가 실행될 때 result의 값은 무엇입니까?
JavaScript-Developer-I 문제 19
아래 코드가 주어졌을 때:
01 기능 GameConsole(이름) {
02 this.name = 이름;
03 }
04
05 GameConsole.prototype.load = 기능(게임 이름) {
06 console.log( ` $(this.name)이 게임을 로드 중입니다 : $(gamename) ...`);
07 )
08 기능 콘솔 16비트(이름) {
09 GameConsole.call(이, 이름) ;
10 }
11 Console16bit.prototype = Object.create( GameConsole.prototype) ;
12 // 여기에 코드 삽입
13 console.log( ` $(this.name)이 카트리지 게임을 로드 중입니다. $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' 슈퍼 노닉 3x 포스 ');
이 메서드를 사용하여 다음 메시지를 출력하려면 개발자가 15행에 무엇을 삽입해야 합니까?
> SNEGeneziz가 카트리지 게임인 Super Monic 3x Force를 로드 중입니다. . .
01 기능 GameConsole(이름) {
02 this.name = 이름;
03 }
04
05 GameConsole.prototype.load = 기능(게임 이름) {
06 console.log( ` $(this.name)이 게임을 로드 중입니다 : $(gamename) ...`);
07 )
08 기능 콘솔 16비트(이름) {
09 GameConsole.call(이, 이름) ;
10 }
11 Console16bit.prototype = Object.create( GameConsole.prototype) ;
12 // 여기에 코드 삽입
13 console.log( ` $(this.name)이 카트리지 게임을 로드 중입니다. $(gamename) ...`);
14 }
15 const console16bit = new Console16bit(' SNEGeneziz ');
16 console16bit.load(' 슈퍼 노닉 3x 포스 ');
이 메서드를 사용하여 다음 메시지를 출력하려면 개발자가 15행에 무엇을 삽입해야 합니까?
> SNEGeneziz가 카트리지 게임인 Super Monic 3x Force를 로드 중입니다. . .
JavaScript-Developer-I 문제 20
아래 코드를 참조하십시오.

라인 05를 실행한 결과는 무엇입니까?

라인 05를 실행한 결과는 무엇입니까?
