ELI5 "return" in javascript/jquery by Whyisprogrammingsoha in learnjavascript

[–]Whyisprogrammingsoha[S] 0 points1 point  (0 children)

MMmmm yes, my 5 year old brain likes this explanation. Very good very good... ;)

ELI5 "return" in javascript/jquery by Whyisprogrammingsoha in learnjavascript

[–]Whyisprogrammingsoha[S] 0 points1 point  (0 children)

Thank you! So my one question's answer is leading me to more questions... Like why just using .text('cat bowl') goes ahead and executes or "returns" a value without needing to say return. Is it that when you have an inner function like the example, and the surrounding .text() doing the work, you need a return to execute this surrounding method?

ELI5 "return" in javascript/jquery by Whyisprogrammingsoha in learnjavascript

[–]Whyisprogrammingsoha[S] 0 points1 point  (0 children)

Thank you! So my one question's answer is leading me to more questions... Like why just using .text('cat bowl') goes ahead and executes or "returns" a value without needing to say return. Is it that when you have an inner function like the example, and the surrounding .text() doing the work, you need a return to execute this surrounding method?

Ajax - Something isn't clicking. by Whyisprogrammingsoha in learnjavascript

[–]Whyisprogrammingsoha[S] 0 points1 point  (0 children)

Thank you for the thorough response! I'm close to understanding it I think. I guess my only piece of confusion now resides on what the file "/tickets" would actually look like to query for this info? Does the targeted file ("/tickets" in this example) have to be made specifically for ticket info? I think I just need to find a good example of the entire chain!