Continue JavaScript execution after try/catch

After a try/catch statement in JavaScript, the code will continue executing.

Example:

javascript
const tryCatch = () => {
    
    try{
        
        console.log('Hello');
        
    }
    catch(e){}
    
    console.log('Please, Erik');
    
    try{
        
        console.log('Throw an error');
        
        throw('Error');
        
    }
    catch(e){
        
        console.log('Here we go!');
        
    }
    
    console.log('End of the script');
    
}

tryCatch();

// Hello
// Please, Erik
// Throw an error
// Here we go!
// End of the script

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.