#JavaScript understand the complexity of Array Constructor
• new Array(…) → same as Array(…)
• Array() → same as []
• Array(n) → if n is 0 or 1, 2 etc, same as y=[];y.length=n. Else, same as [x].
• Array(a1,a2,a3) → same as [a1,a2,a3]
#JavaScript understand the complexity of Array Constructor
• new Array(…) → same as Array(…)
• Array() → same as []
• Array(n) → if n is 0 or 1, 2 etc, same as y=[];y.length=n. Else, same as [x].
• Array(a1,a2,a3) → same as [a1,a2,a3]
#JavaScript, understand Class like a Mathematician (updated)
http://xahlee.info/js/javascript_class.html
#JavaScript In Depth, learn RegExp in 10 minutes, for beginner http://xahlee.info/js/js_regex_tutorial.html
#JavaScript in Depth, understand ES2015 Array.prototype.copyWithin
http://xahlee.info/js/js_Array.prototype.copyWithin.html
Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.
All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.