Javascript Tagalog - 배열 반전 방법

Disclaimer: This is a Blog i made with the initial intention of reinforcing my knowledge in JS. I just thought sharing my blogs might be helpful for someone since they are written in tagalog/taglish. Incase of Misinformation I won't be responsible for it and you can comment on the blog to address the mistake or email me. I'm always trying my best to be as accurate as possible. take a look at other resources just to be sure.
Ano ngaba ang Array Reverse method sa Javascript?
yung Array Reverse method sa javascript, rereverse niyalang yung original array.

파노 가미틴:

const arr = [1,2,3]

arr.reverse()

console.log( arr ) // [3, 2, 1 ]



반환 값
lalagay mo siya sa 변수라면 ano yung 값?


const arr = [1,2,3]

const returnValue = arr.reverse()

console.log( returnValue ) // [3, 2, 1 ]



반환 값 ng 역방향 메서드는 yung 반전된 na 배열이지만 주의해야 합니다.

const arr = [1,2,3]

const returnValue = arr.reverse()

returnValue.pop()

console.log( arr ) // [3, 2,]
console.log( returnValue ) // [3, 2,]




baka 지나치게 단순화되고 부정확한 정보 nasulat ko 그래서 여기에 더 자세한 문서가 있습니다(영어).
MDN Documentation - Array Reverse method
더 많은 tagalog Javascript 학습 리소스:
https://javascript-in-tagalog.netlify.app

좋은 웹페이지 즐겨찾기