What is try catch ..finally block in javascript?

Below is the syntax for try catch …finally

try{
  // some code 
}
Catch
{ 
    //code
}
finally
{ 
   //  code
    
}

Can I get a simple working example which explains try catch …finally block?