What did I learn today π€ I learned the difference between break and return keywords in ruby. Details please return exits from the entire function. break exits from the innermost loop. Thus, in a function like so: def testing(target, method) (0..10...
Markdown supported Β· ββ΅ to post
Cool :-) Why not tag it with TIL (Today I Learned) tag so that it appears here: hashnode.com/feed/til
j
stuff ;)
don't you mean break exits the loop?