DEV Community

Cover image for Try... catch... finally...
Husniddin6939
Husniddin6939

Posted on

Try... catch... finally...

  1. Try - we can log or do some actions and show in console.

  2. catch - whlile js check the try section and if it find some error, it will catch and don't show errors the screen. catch section find first error and stop , it doesn't check second one.

3.finally - this section show whatever in console the finish part.

Top comments (0)