Convert Object { } to Array [ ] in JavaScript | JavaScript Interview Question

Convert Object { } to Array [ ] in JavaScript | JavaScript Interview Question

CodeyMaze

2 года назад

8,456 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

D Dev Studio
D Dev Studio - 23.08.2023 16:47

how to convert nested object to array ?
const student = {
"name": "Nageswaran",
"age": 23,
"degree": "BBA",
"marks": {
"english": 5,
"science": 10
}
};

output should be ["name", "Nageswaran", "age", 23]

Ответить
G.D Motivation
G.D Motivation - 13.06.2023 11:29

thanks

Ответить
Bohny Dua
Bohny Dua - 30.01.2023 21:34

i just checked ur channel u r giving amazing info will definitely watch FE series keep helping us...

Ответить
pawan Pyare
pawan Pyare - 28.11.2022 09:34

Thanks 👍

Ответить
Adarsh Singh
Adarsh Singh - 10.03.2022 13:02

Awesome...

Ответить
Rommel John Sevilla
Rommel John Sevilla - 24.11.2021 06:25

thank u so much!!

Ответить