I have listed some funny code comments people encountered in production code. The Internet is getting more and more important, we can use it for working, learning, for entertaining …Only in the aspect of entertainment, we use the Internet to play online games, to search, listen & download the favorite songs, videos, movies, …The Internet also is the very good environment for studying, it helps us in looking for the materials, solving our problems, getting the supports from the other persons, … Especially in the field of computers in general, web programming in particular; many people think the programming languages are only for working, there’s no joy in it.That’s reason why I wrote this post, I just want to say to all: with JavaScript, you can find some little joys; JavaScript can make many funny things that you may not have realized. Here's a small table to understand addition in JavaScript:More information about the String constructor in the specification:Let's declare a function which logs all params into the console:No doubt, you know you can call this function like this:But did you know you can call any function with backticks?Well, this is not magic at all if you're familiar with Attention, it could break your mind!

Generating a maze with a simple algorithm 1. Consider these examples:What's happening in the first four examples? The point is to consolidate a variety of effects under one easily accessible interface so that folks with very little programming experience could do fun things with GIFs, JPGs and PNGs on any site–even some hosted blogs and social network sites that allow javascripts.

Use any note editor like Notepad, Notepad++ to write the code. JavaScript is a great language. I especially like the error window!Really amazing and funny javascript effects Nice post. Don’t believe me? It's just a bug that has now been fixed, so there shouldn't be a problem with it in the future.The concatenation happens. Well, This writing will show you how code commenting can be funny too. If you continue to use this site we will assume that you are happy with it. In the first example, there is a semicolon inserted between the While your first instinct may be that IE11 is correct and Firefox/Chrome are wrong, the reality is that Firefox/Chrome are more directly obeying standards for numbers (IEEE-754 Floating Point), while IE11 is minutely disobeying them in (what is probably) an effort to give clearer results.You can see why this occurs with a few quick tests:Floating point numbers are not stored as a list of decimal digits internally, but through a more complicated methodology that produces tiny inaccuracies that are usually rounded away by toString and similar calls, but are actually present internally.In this case, that "5" on the end was actually an extremely tiny fraction below a true 5. Fresh WordPress news and resources to help you build WordPress websites the right way! However, if we try to get a value of This happens because when something doesn't have a prototype, it will be wrapped into a wrapper object using the Then we've passed this object to the template literal, so the The example above is a great task for an interview. Here's how it works:Read more about Relational operators in the specification:Often the results of arithmetic operations in JavaScript might be quite unexpected.

It has a simple syntax, large ecosystem and, what is most important, a great community. Check out this very nice and useful Java script codes, Java Script code is the best web languages which is easy to use with only basic knowledge of HTML.

It has a simple syntax, large ecosystem and, what is most important, a great community.At the same time, we all know that JavaScript is quite a funny language with tricky parts. The last case arises when at least one operand is NaN.