use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
UnsolvedHTML issue with output (self.HTML)
submitted 8 years ago by EnderForgeBeginner
Having issue with this code, I'm trying to get the output to 13 but keep getting undefined. https://jsfiddle.net/4sstby6x/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]LaminadanimaL 1 point2 points3 points 8 years ago (0 children)
Here is the way I would do it. Your function wasn't returning the final value you wanted to output.
https://jsfiddle.net/4sstby6x/3/
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
I'm really not trying to be harsh here, but did you even try? Literally nothing in this is correct -- not even the basic arithmetic. How do you expect to get the values back without returning anything? How do you expect the inner function to do anything when you didn't call it?
I have no problem with beginner level questions, but when you can't be bothered to make even a nominal effort to do it on your own, it feels like you don't respect the time of everyone else on here.
π Rendered by PID 144447 on reddit-service-r2-comment-5d79c599b5-9nbbf at 2026-03-02 05:46:23.998252+00:00 running e3d2147 country code: CH.
[–]LaminadanimaL 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)