(Core Objects 07) Module 6 Quiz

SoloLearn JS 번역


QUIZ

  • Given the array below, please complete the expression to be alerted with “apple”.
    • 주어진 배열을 참조해서, “apple”을 alert 하는 표현식을 완성해라.
var fruits = new Array("pear", "orange", "apple", "grapefruit");

alert(fruits[2]);


  • What is the result of the following expression?
    • 다음 표현식의 결과는 무엇인가?
alert(Math.sqrt(36));

6


  • Please fill in the blanks to output the current minutes:
    • 현재 분(minutes)을 출력해라.
var date = new Date();

alert(date.getMinutes());


  • What is the output of this code?
    • 이 코드의 출력은 무엇인가?
var arr = new Array('a', 'b', 'c');

alert(arr[1]);

b


  • Drag and drop from the options below to get alerted with the value of the PI constant.
    • PI 상수 값으로 alert 해라.
alert(Math.PI);