CHALLENGE
const original = { a: 1, b: { c: 2 } };
const shallow = { ...original };
const deep = JSON.parse(JSON.stringify(original));
shallow.a = 10;
shallow.b.c = 20;
deep.a = 100;
deep.b.c = 200;
const frozen = Object.freeze({ x: 1, y: { z: 2 } });
frozen.x = 99;
frozen.y.z = 99;
console.log(original.a, original.b.c, frozen.x, frozen.y.z);❤1
The best way to learn JavaScript is by practicing examples. In this post, I have posted some basic programs for internships purpose and pratice.
Namaste Dev Course Alert 🧨
Mern Stack BundleEverything Available DM @Myhurthearts
Frontend Master Bundle
Advance Full stack Bundle
Namaste Nodejs
Namaste React
Namaste SQL Hin/Eng
Namaste DSA
Namaste Frontend Design
Namaste Javascript
This media is not supported in your browser
VIEW IN TELEGRAM
CHALLENGE
async function fetchData() {
console.log('1');
return Promise.resolve('data');
}
async function processData() {
console.log('2');
const result = await fetchData();
console.log('3');
return result;
}
console.log('4');
processData().then(() => console.log('5'));
console.log('6');❤3
❤1
Google Lyria AI Se Bollywood Sad Song Kaise Banaye | Text to Music AI Tutorial (Full Guide)
https://youtube.com/shorts/NvhGGoLgyOo?si=XMGcMiQ_RwxvLpcn
https://youtube.com/shorts/NvhGGoLgyOo?si=XMGcMiQ_RwxvLpcn
YouTube
Learn how to generate a Bollywood style sad song using Google Lyria AI Text to Music. #codebomb
Learn how to generate a Bollywood style sad song using Google Lyria...