JavaScript Exercises | Hack Reactor's Bootcamp Prep | Module 1 | Exercise 039_getFirst Element

Опубликовано: 27 Февраль 2026
на канале: Astra Rai - The Sober Coder
32
1

JavaScript Exercises | Hack Reactor's Bootcamp Prep | Module 1 | Exercise 039_getFirst Element

Hack Reactor Bootcamp Prep
Module 1 JavaScript Exercises
Exercise 39 of 145

In this video, I solve the exercise 039_getFirstElement. The function getFirstElement, has one parameters, array. It returns the first element of the array passed as an argument through the function.

-Functions
-Arguments and parameters
-Return statement
-Arrays
-How to access element of an array

-Information on how to access element of an array: https://www.w3schools.com/js/js_array...

-Information on arrays: https://developer.mozilla.org/en-US/d...

-GitHub link to code: https://github.com/Astra-Rai/Hack-Rea...

-Codepen link to code: https://codepen.io/Astra_Rai/pen/QPygEv

Connect with me:

Twitter:   / astrarai  
LinkedIn:   / astra-rai…  
Medium:   / astrarai  
GitHub: https://github.com/Astra-Rai