0
cant get tcantcode right can soneone help please
need help error somewhere in code and cant find out what it is the fuction just wont work https://code.sololearn.com/WVCWeecqZtIw/?ref=app
8 Réponses
+ 2
fix this alert(hi, my name is this.name = "name")
to this alert("hi, my name is " + this.name)
+ 2
i dont even know why your code doesnt work tbh
+ 2
id do this,
this.primero = "hi, my name is " + this.name
delete the intro()
+ 2
yeah dont add any intro function because if u do that, the this.name inside the function will refer to the function itself and the function doesnt have the name property so it will return undefined
0
IT WORKS!!!! THANKS A BUNCH, id have never guessed the quotation marks were in the wrong spot...thanks again
0
but you were right though, the quotation marks were the issue, but now im at the next issue, ive gotten the function to print what needs to be printed but now the variable wont plug in, it keeps just printing "this.name" instead of the actual variables value, any idea? if its not too much to ask???
0
that makes sense, but doesnt it delete the purpose of adding a method, or is that route just irrellevant?