Home > Web Front-end > JS Tutorial > Js in bits - emicolon ;)

Js in bits - emicolon ;)

Barbara Streisand
Release: 2024-12-27 15:19:11
Original
733 people have browsed it

Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.

semicolon ;

Semicolon is used to execute 2 separate statements on a single line or multiple lines.

Js in bits - emicolon ;)

JS inserts the semicolon

Js in bits - emicolon ;)

Js is intelligent in the absence of semicolon

Js in bits - emicolon ;)

JS is confused. It assumes the value out of the code execution after the alert, should be stored in a variable which is missed out, so it results in error.

Js in bits - emicolon ;)

Leave y'r thoughts....

The above is the detailed content of Js in bits - emicolon ;). For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template