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 Push method sa Javascript>
Yung 어레이 푸시 방법 ay basta magpu-push lang siya ng value sa 어레이.

파노 가미틴:

const arr = [0,1,2]

arr.push(3)

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

//Pwede multiple arguments ilagay mo
arr.push(4,5)

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


디바? 쉬운 랭!.

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

const arr = [0,1,2]

const returnValue = arr.push(3)
console.log( returnValue ) // 4


yung 반환 값 ng 푸시 방법은 natin maglagay ng bagong 요소 이후의 yung bagong 길이 ng 배열입니다.


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

좋은 웹페이지 즐겨찾기