how to bring closed tab back code example

Example 1: open previous closed tab chrome

Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose "Reopen closed tab." 
You can also use a keyboard shortcut to accomplish this: 
CTRL + Shift + T on a Window PC or 
Command + Shift + T on a Mac.

Example 2: how to make so chrome open closed tabs automatically

Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose "Reopen closed tab." 
You can also use a keyboard shortcut to accomplish this: 
CTRL + Shift + T on a Window PC or 
Command + Shift + T on a Mac.