ASI Guide - Rules for Automatic Semicolon Insertion (ASI) in JavaScript

Subscribers:
58,000
Published on ● Video Link: https://www.youtube.com/watch?v=XkqyDM28y4A



Category:
Guide
Duration: 13:28
987 views
35


Learn more advanced front-end and full-stack development at: https://www.fullstackacademy.com

You may have noticed that if you accidentally omit semicolons from your Javascript code, your code still works! Why is that?
When your JavaScript is parsed, there is a mechanism called Automatic Semicolon Insertion (ASI) that conceptually inserts missing semicolons into your code based on certain rules. ASI doesn’t actually insert semicolons into the source code, it’s a set of rules that govern where you can omit semicolons. In this ASI Guide, we cover some of the major rules governing Automatic Semicolon Insertion (ASI), examples of how it can help your code if you choose to omit semicolons, and example's where it is not so helpful.

Watch this video to learn:

- What is Automatic Semicolon Insertion (ASI)
- When you can omit Semicolons
- Why you should understand ASI




Other Videos By Fullstack Academy


2016-11-14Textree Plot
2016-11-14Building Mobile Apps with React Native Tutorial: An Intermediate Overview of React.js
2016-11-14Elm Tutorial - An Introduction to Elm's Features and Architecture
2016-11-12Fullstack Academy Live
2016-11-12Fullstack Academy Live
2016-11-12Fullstack Academy Live
2016-11-111st-ever "game night" with Fullstack's Remote Immersive students (MMO Minecraft party!)
2016-11-11Recommendation Engines Tutorial: The Basics Behind Various Recommendation Methods
2016-11-11Webpack Tutorial - How to Bundle your Modules with Webpack
2016-11-11Web Audio API Tutorial - Build a Synthesizer and Frequency Analyser using Javascript's Web Audio API
2016-11-11ASI Guide - Rules for Automatic Semicolon Insertion (ASI) in JavaScript
2016-11-11Redis Tutorial - Intro to Redis w/ Node.js Demo
2016-11-11Tech Talk: Machine Intelligence and Political Campaigns
2016-11-11Growth Hacking Techniques - Examples of Growth Hacking Strategies
2016-11-11Introduction to Computer-Aided Diagnosis in Medical Imaging (Radiology)
2016-11-11User Experience (UX) Design Tutorial - Principles and Strategies of UX Design
2016-11-11Tech Talk: RegEx (SVG) & JSX: Adapting Vector Graphics for React
2016-11-11WebGL Tutorial - 3D Rendering in the Web Browser with WebGL
2016-11-11Tails Tutorial: An Overview of Privacy Software and How to Use It
2016-11-11Asynchronous Javascript and Multithreading in C++ Tutorial: The Basics, Pros & Cons, and Examples
2016-11-11RegEx Tutorial - A Tutorial on Regular Expressions and HTML Parsing



Tags:
ASI
Automatic Semicolon Insertion
Semicolons
javascript semicolon