🧠 Number & Array Operations

1️⃣ Armstrong Number Checker


    

2️⃣ Strong Number Checker


    

3️⃣ Sum of Digits in Array


    

4️⃣ Find Min & Max in Array (No Built-ins)


    

📋 Common JavaScript Array Methods

Method Description Example
push() Adds item at the end
[1,2].push(3) → [1,2,3]
pop() Removes last item
[1,2,3].pop() → [1,2]
shift() Removes first item
[1,2,3].shift() → [2,3]
unshift() Adds item to start
[2,3].unshift(1) → [1,2,3]
slice() Extracts a section
[1,2,3,4].slice(1,3) → [2,3]
splice() Removes/replaces items
[1,2,3].splice(1,1,99) → [1,99,3]
indexOf() Finds index of value
[10,20,30].indexOf(20) → 1
includes() Checks if value exists
[1,2,3].includes(2) → true
reverse() Reverses array
[1,2,3].reverse() → [3,2,1]
concat() Joins arrays
[1,2].concat([3,4]) → [1,2,3,4]