The difference between undefined and null Original author: Ruan Yifeng Date: March 28, 2014 Most computer languages have one and only one value representing “none”, such as NULL in C language, null in Java language, None in Python language, and nil in Ruby language. It is a bit strange that the JavaScript language actually has… Continue reading The difference between undefined and null
Month: September 2020
What is Event Loop?
What is Event Loop? Original author: Ruan Yifeng Date: October 21, 2013 [2014.10.08 update] There are errors in the content of this article, please refer to the new version . Event Loop is a very important concept, referring to an operating mechanism of a computer system. The JavaScript language uses this mechanism to solve some… Continue reading What is Event Loop?
JavaScript and Finite State Machine
JavaScript and Finite State Machine Original author: Ruan Yifeng Date: September 2, 2013 Finite state machine (Finite-state machine) is a very useful model that can simulate most of the things in the world. Simply put, it has three characteristics: * The total number of states (state) is limited. * At any one time, only in… Continue reading JavaScript and Finite State Machine
How to make search engines crawl AJAX content?
How to make search engines crawl AJAX content? Original author: Ruan Yifeng Date: July 16, 2013 More and more websites are beginning to adopt ” Single-page application ” (Single-page application). The entire website has only one web page, and uses Ajax technology to load different content according to the user’s input. The advantage of this… Continue reading How to make search engines crawl AJAX content?