Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
Now look at the MojiScript alternative. This program will output 1 through 5 with 1 second delay between each output. (imports have been excluded for brevity)
Amazing!
Just one question, does it has a better performance than normal JavaScript for Node.js?
Or it is just for doing functional coding style?
Thanks, but you are asking the wrong question!
It functions better than JavaScript.
Look at this JavaScript code. It is complicated to understand the output. This code outputs all give 6's after 1 second.
Now look at the MojiScript alternative. This program will output 1 through 5 with 1 second delay between each output. (imports have been excluded for brevity)
Did you notice that? Did we just create an asynchronous
map
? Shhh. articles coming out on Asynchronousmap
,filter
, andreduce
shortly. Stay tuned!