JavaScript > Javascript objects > Beginner Next/Skip this question

What would be the output of following JS code?

var p = new Object();
p["x"] = 3;
p["y"] = 5;
console.log(p.x + "," + p["y"])
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question