JS Trick Questtions

akash32755

Akash Yadav

Posted on March 4, 2024

JS Trick Questtions
const obj = {a: 1, b: 2}
const val1 = obj.c;
const val2 = obj.c || "default"; // fallback
console.log(val1)
console.log(val2)
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
akash32755
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