JAVASCRIPT PROGRAMMING
3.68K subscribers
494 photos
3 videos
48 files
102 links
Hello! I am @imabhi3030 and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills. I am always present to help you. If you need any kind of assistance, just let me know! 😊
Download Telegram
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 Bundle
Frontend Master Bundle
Advance Full stack Bundle
Namaste Nodejs
Namaste React
Namaste SQL Hin/Eng
Namaste DSA
Namaste Frontend Design
Namaste Javascript
Everything Available DM @Myhurthearts
⌨️ Advanced JS Cheat sheet
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