KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I can't find a recommended way to stop a function part way when a given condition is met. Should I use something like exit or break ? I am currently using this: if ( x >= 10 ) { return; } // other conditions;
Tags (comma-separated)
Save Edits
Cancel