Replit.JavaScript 배열-3.배열 요소 접근

younghyun·2021년 12월 30일
0

Assignment

  • 변수 firstValue를 선언해주세요.
  • firstValue의 값은 배열 myArray의 첫 번째 값입니다.
function arrayIndex() {
  // do not change your code here
  const myArray = [50, 60, 70];

  // write your code below
  let firstValue = myArray[0];


  // do not change your code here
  return firstValue;  
}

console.log(arrayIndex())

module.exports = { arrayIndex }
profile
선명한 기억보다 흐릿한 메모

0개의 댓글