const obj = {a: 1, b: 2}
const val1 = obj.c;
const val2 = obj.c || "default"; // fallback
console.log(val1)
console.log(val2)
For further actions, you may consider blocking this person and/or reporting abuse
const obj = {a: 1, b: 2}
const val1 = obj.c;
const val2 = obj.c || "default"; // fallback
console.log(val1)
console.log(val2)
For further actions, you may consider blocking this person and/or reporting abuse
Idris Gadi -
Alexis Clarembeau -
Ashish prajapati -
Vaibhav Dwivedi -
Top comments (0)