Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 63 / 15740%
Arrays1/8

Creating Arrays

Store multiple values in a single field with MongoDB arrays, enabling powerful list-based data modeling.

int nums[5] = {10, 20, 30, 40, 50};nums[0]10nums[1]20nums[2]30nums[3]40nums[4]50indexing starts at 0 — last element is nums[n-1]
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?