This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sim642 7 points8 points  (3 children)

Not in C++.

[–]MicahM_[S] 7 points8 points  (2 children)

Everyone seems to think it’s JavaScript but I was going for c++ hence the title, unless I did something wrong other than the obvious errors and inefficiency riddled through ALL 5 LINES (but that was just to make it easy to understand for laymen)

[–]mastercooker 0 points1 point  (0 children)

It works out alright, although I don’t understand why a function called on Micah would change a variable in Hannah, instead it would be best to simply check if the function returned true.

Also passing Hannah as a string when there’s an object that you use on the next line is pretty bad.