#8 Javascript Arrays | Javascript Hindi Course For Beginners ( 2023 )

An array in JavaScript is a data structure that allows you to store multiple values in a single variable. It's like a list of items, where each item can be accessed by its index (position) in the list. The items in an array can be of any data type, including numbers, strings, objects, and other arrays. Arrays are a useful tool for organising and manipulating data in a program.

CRUD Operation Array

How loop over array

Array Methods

 
 
 
Array Checker Methods
 

Questions

question 1
Concatenate Variable Number of Input Arrays
Create a function that concatenates n input arrays, where n is variable.
@helen_yu
 
Question 2
Store Payment
Given a total due and an array representing the amount of change in your pocket.
determine whether or not you are able to pay for the item.
Change will always be represented in the following order: ₹1 coin, ₹2 coin, ₹5 coin, ₹10 coin
changeEnough([25, 20, 5, 5], 120) should yield true
@helen_yu
since having 25 → ₹1 coin, 20 → ₹2 coin, 5 → ₹5 coin and 5 → ₹10 coin
gives you 25 + 40 + 25 + 50 = 140
 
 
Question 3
Factorial of number using reduce method
factorial of 4 = 1*2*3*4 = 24
 
Question 4
Find the Second Largest Number
Create a function that takes an array of numbers and returns the second largest  number. @matt