Ask coding questions

← Back to all posts
Help!!
EmojiGame (4)

Um this ruby code isn't working can someone help?

Comments
hotnewtop
EmojiGame (4)

@KirikAltekar uhm the value isn't being assigned to 0

CT2224 (144)
thing = Class.new(0)
EmojiGame (4)

@KirikAltekar I want to manually assign it to 0 after creating it
thats the whole problem

EmojiGame (4)

@JiyoonChang wait i fixed it it needs to be @val not just val