Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
16いいね 1727回再生

How to Get the Last Item in a JavaScript Array 2 Easy Ways! Part_17

Want to grab the last element of an array in JavaScript?
In this short video, I’ll show you two simple and effective methods:

1️⃣ array[array.length - 1]
2️⃣ array.at(-1)

Whether you're a beginner or just brushing up on your JS skills, this quick tip will come in handy!

🔔 Don’t forget to like, comment, and subscribe for more JavaScript tips!

#javascript #codingtips #webdevelopmentjobs #learnjavascript #javascripttips #shorts

コメント