Use of The class Attribute in JavaScript

Click the button to hide all elements with class name "city":

London

London is the capital of England.

Paris

Paris is the capital of France.

Tokyo

Tokyo is the capital of Japan.