Ask coding questions

← Back to all posts
What is wrong with this?
DeveloperPerson

function Player is defined in player.js, function Projectile is defined in projectile.js. new Player() returns a Player object, but new Projectile() gives me undefined. What did I do wrong and how do I fix it?

Voters
DeveloperPerson