Hi,
I'm studying JavaScript and this little bunch of code came up. I'm not understanding how the quotation marks work in this. It's suppopsed to label the ellipse with the mouseX and mouseY coordinates, and it works just fine. I'm just hoping for a new perspective that will help me understand what those quotes mean. Thanks for you help,
Kevin
fill(255, 0, 255);
draw = function() {
background(255, 255, 255);
ellipse(mouseX, mouseY, 12, 12);
var label = mouseX+", "+mouseY;
text(label, mouseX, mouseY);
};
I'm studying JavaScript and this little bunch of code came up. I'm not understanding how the quotation marks work in this. It's suppopsed to label the ellipse with the mouseX and mouseY coordinates, and it works just fine. I'm just hoping for a new perspective that will help me understand what those quotes mean. Thanks for you help,
Kevin
fill(255, 0, 255);
draw = function() {
background(255, 255, 255);
ellipse(mouseX, mouseY, 12, 12);
var label = mouseX+", "+mouseY;
text(label, mouseX, mouseY);
};