reverse, length

d·2020년 7월 9일
0

reverse() 메서드는 배열의 순서를 반전

const clothing = ['shoes', 'shirts', 'socks', 'sweaters']

console.log(clothing.length);

length() 메서드는 배열의 개수를 세어줌
const clothing = ['shoes', 'shirts', 'socks', 'sweaters']

console.log(clothing.length);

profile
d

0개의 댓글