DEV Community

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

Posted on

1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →