JS Trick Questtions
Akash Yadav
Posted on March 4, 2024
const obj = {a: 1, b: 2}
const val1 = obj.c;
const val2 = obj.c || "default"; // fallback
console.log(val1)
console.log(val2)
💖 💪 🙅 🚩
Akash Yadav
Posted on March 4, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
javascript Optimizing JavaScript with Memoization: A Deep Dive into Boosting Performance:
November 18, 2023