Javascript Tagalog - Array Unshift 방법

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.
Javascript와 Array Pop 방법이 다른가요?
yung Array unshift method sa javascript is maglalagay siya ng values ​​sa unahan ng array

파노 가미틴:

const arr = [4,5]

arr.unshift(3)

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

//Pwede multiple arguments ilagay mo
arr.unshift(1,2)

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




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


const arr = [2,3]

const returnValue = arr.unshift(1)

console.log( returnValue ) // 3



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


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

좋은 웹페이지 즐겨찾기