다음 초보자 문제를 해결하십시오. 코드 블록 문제의 경우 실행 시 콘솔 창에 표시되는 결과를 비교하십시오.
답변 페이지에서 답변을 확인하세요. 8개 이상의 질문에 올바르게 답하면 Javascript Beginner Fitness 레벨 자격이 주어집니다. 중간 문제를 풀어보세요.
ps) 제 개인적인 생각입니다. 즐겨주세요~
작업 1)
console.log(typeof ());
연습 2)
const arr = (1, 2, 3);
arr.push(4);
console.log(arr);
과제 3)
let a = 2;
let b = 4;
(a, b) = (b, a);
console.log(a, b);
작업 4)
function multiply(a, b) {
return a * b;
}
console.log(multiply(2, 5));
작업 5)
console.log("1" + 1);
작업 6)
const a = "Hello";
const b = "World";
console.log(`${a}, ${b}!`);
작업 7)
let x = 1;
let y = 2;
console.log(x + y + "3");
작업 8)
let x = 5;
console.log(x++);
console.log(x);
작업 9)
let a = (1, 2, 3);
let b = (4, 5, 6);
let c = a.concat(b);
console.log(c);
작업 10)
let x = (1, 2, 3, 4, 5);
x = x.filter(function(element) {
return element > 2;
});
console.log(x);