Back

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 4/21 โ€“ My JavaScript Learning Journey Todayโ€™s focus: Arrays in JavaScript ๐Ÿ“ฆ An Array is a special object in JS used to store multiple values in a single variable. ๐Ÿ”น Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; ๐Ÿ”น Common Methods push() โ†’ add at the end pop() โ†’ remove last element shift() โ†’ remove first element unshift() โ†’ add at the beginning indexOf() โ†’ find element index length โ†’ get size of array ๐Ÿ’ก Example: let arr = [1, 2, 3]; arr.push(4); // [1, 2, 3, 4] arr.shift(); // [2, 3, 4] โœจ Arrays are the backbone of data handling in JavaScript. โ“Whatโ€™s your favorite array method that you canโ€™t code without? #JavaScript #Coding #WebDevelopment #LearningJourney #21DayJavaScript

Reply
5

More like this

Recommendations from Medial

Prince Singh Chouhan

Front-end Developerย โ€ขย 1y

#Array in #javascript: Array in Javascript enables storing a collection of multiple items under a single variable name, and has members for performing common array operations. Arrays aren't primitives but are instead Array #objects with the followin

See More
Reply
2

Arihant Jain

Crafting Impactful A...ย โ€ขย 8m

๐Ÿง  Programming Challenge of the Day Can you solve this? You're given an integer array (with both positive and negative values). Each element in the array represents the number of stars (*) to be printed vertically in its column: ๐Ÿ”น Positive values

See More
Reply
2
3

Sanskar

Keen Learner and Exp...ย โ€ขย 5m

Day 6 of learning Data Science as a beginner. Topic: creating NumPy arrays NumPy arrays can be created using various ways one of them is using python list and converting it into a numpy array however this is a long way here you first create a pytho

See More
Reply
10

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 3/21 โ€“ My JavaScript Learning Journey Today I explored two core concepts: Loops & Strings. ๐Ÿ”น Loops in JavaScript for โ†’ classic loop with index. while โ†’ runs until a condition is true. do...while โ†’ executes at least once. for...of โ†’ best

See More
Reply
6

Sanskar

Keen Learner and Exp...ย โ€ขย 5m

Day 7 of learning Data Science as a beginner. Topic: Indexing and Slicing NumPy arrays Since a past few days I have been learning about NumPy arrays I have learned about creating arrays from list and using other numpy functions today I learned abou

See More
Reply
1

Sagar gupta

Full-time Freelancer...ย โ€ขย 1y

Most Javascript Questions Asked in Interview | PART 2 1. What is difference between a for loop and for Each loop Ans: A for loop is traditional loop that uses a counter variable to iterate over an array. ForEach loop is a method that iterate over a

See More
Reply
3
10

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 2 of 21 โ€“ JavaScript Learning Journey Topic: Operations & Conditional Statements ๐Ÿ”น Operations in JavaScript Arithmetic: + - * / % Assignment: = += -= Comparison: == === != > < >= <= Logical: && || ! ๐Ÿ”น Conditional Statements // if sta

See More
1 Reply
1
16
Image Description

Mithilesh Mishra

๐Ÿš€ Founder @ HiringR...ย โ€ขย 8m

๐Ÿš€ Internship Opportunity: Java Full Stack Developer at HiringReferals.com! We are looking for 3-4 Java Full Stack Developer Interns to join our tech team at HiringReferals.com, India's fastest-growing referral-based hiring platform. ๐Ÿ”น Role: Java

See More
2 Replies
2
5
Image Description
Image Description

Sidharth s

Restarting -loop-beg...ย โ€ขย 1y

Ever thought how hashmaps work internally in java ,, lets understand So in java , array of LinkedLists is used to implement hashmap. for example when we write HashMaphmap=new HashMap<>(); hmap.put("sss",1); when we intialize a

See More
3 Replies
2
8

Rudra Madhab Mishra

Developer, Ai Engine...ย โ€ขย 8m

6 habbits change your life in one year 1. Remove Negative people 2.Commit your goal 500% 3. stay humble.... 4. Learn from all Mistakes 5. keep Building relevant skills 6. Reinvest Your self 7...

Reply
2

Download the medial app to read full posts, comements and news.