Skip to content
Advertisement

using break function within the function to stop the further execution of program

JavaScript

I am looking to break the execution of further program if the if condition is met.

is this the correct way to do so..? since break only ends the loop, but i want to end the function

Advertisement

Answer

You need to use

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement