Ask coding questions

← Back to all posts
What does this error mean: this.value.codegen is not a function
WilliamPenrod (41)

this.value.codegen is not a function
WUT, PLZ HLP!

Answered by Vandesm14 (2643) [earned 5 cycles]
View Answer
Comments
hotnewtop
Vandesm14 (2643)

I think this means that lolcode does not work on repl.it, despite them displaying it as a working language.

Rileygamer21 (32)

Just remove ITZ A NUMBAR and it sould work

mwilki7 (1134)

This person also had trouble with this.
https://repl.it/talk/ask/what-did-i-do-wrong/21823

The fix had something to do with removing ITZ A NUMBAR

Rileygamer21 (32)

@mwilki7 yea I helped then fix that

WilliamPenrod (41)

@Rileygamer21 No, i need the value to be a integer. Removing that causes the var to be treated like a string.

mwilki7 (1134)

@WilliamPenrod
try initializing it like a number:
I HAS A NOMBR ITZ 0

WilliamPenrod (41)

@mwilki7 I tried that initially. It doesn't work :/

Rileygamer21 (32)

@WilliamPenrod No that says that the variable exists so you can use it in the future so you can be like I HAZ A name then Gimmie name

WilliamPenrod (41)

@mwilki7 If i throw that in to an if statement and compare with a number it it doesn't work.