TGViewer
Web Development - HTML, CSS & JavaScript Web Development - HTML, CSS & JavaScript @javascript_courses ยท 55.7K subscribers
Post #3465 1.62K
๐ŸŽฏ 16. Object.keys()

Returns all keys.

console.log(Object.keys(person));

Output: ["name","age"]

๐Ÿš€ 17. Object.values()

Returns all values.

console.log(Object.values(person));

Output: ["Deepak",25]

๐Ÿ”ฅ 18. Object.entries()

Returns key-value pairs. console.log(Object.entries(person));

Output: [["name","Deepak"], ["age",25]]

๐Ÿ“ฆ 19. Destructuring Objects

Extract values easily.

const person = { name:"Deepak", age:25 };
const { name, age } = person;


โšก 20. Spread Operator

Copy objects.

const person = { name:"Deepak" };
const updated = {...person, city:"Pune" };


๐ŸŽฏ Real Interview Example

Array of Objects

const employees = [
{ id:1, name:"John" },
{ id:2, name:"Mike" }
];
console.log(employees[0].name);


Output: John

โญ Most Important Topics For Interviews

๐Ÿ”ฅ Arrays

๐Ÿ”ฅ Objects

๐Ÿ”ฅ map()

๐Ÿ”ฅ filter()

๐Ÿ”ฅ reduce()

๐Ÿ”ฅ Destructuring

๐Ÿ”ฅ Spread Operator

๐Ÿ”ฅ Object.keys()

๐Ÿ”ฅ Object.values()

๐Ÿ”ฅ Array of Objects

๐Ÿ“ Mini Practice Questions

Easy:

โœ… Find largest number in array,

โœ… Sum all array elements,

โœ… Count array length

Medium:

โœ… Remove duplicates,

โœ… Find second largest number,

โœ… Reverse array

Advanced:

โœ… Group objects by property,

โœ… Custom map() method,

โœ… Flatten nested arrays

Double Tap โค๏ธ For More
  • โค 2
  • ๐Ÿ‘ 2
More from @javascript_courses
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  3. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  4. Oct 4, 2026DSA Handwritten Notes
  5. Sep 28, 2026To learn web design and development from basic to advanced levels, you can follow these stโ€ฆ
  6. Sep 27, 202610 Websites Every Developer & AI Enthusiast Should Bookmark โœ… roadmap.sh โ€“ Step-by-step leโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’