I am trying to write a simple method to add to my object constructor. All the standard property's work fine but I cant get the method to return anything.
I am not sure if it needs to be a prototype since its inside a constructor.
Thanks for your help!
I am running "console.log(HR.Info);"...
Hey guys I am new to debugging JavaScript in firebug and am trying to do something pretty basic and getting frustrated.
here is my code that I am loading in firebug
//Code Starts
function Person(first,last,age){
this.firstname = first;
this.lastname = last;
this.age = age;
var bankBalance =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.