The Chinese were united for the first time during the Qin dynasty (221–207 BC).The dynasty standardised the writing system and completed construction of the Great Wall.The ensuing Han dynasty (206…
When I observe the behavior of JavaScript, I really found it a weird language. It is a compile time as well as scripting language. We use to hear that everything in JS is an object and many other things that make JS a weird language.
Let’s have a look on few examples that shows it’s behavior.
Example 1: typeOf(NaN) is a number.
Example 2: typeOf([]) is an object
Example 3: 9999999999999999 = 10000000000000000
Example 4: 0.1 + 0.3 = 0.4 But 0.1 + 0.2 != 0.3
Example 5: [] + [] = “”
Example 6: [] + {} = “[object, Object]”
Example 7: {} + [] = 0
Example 8: true + true + true = 3
Example 9: true - true = 0
Example 10: true == 1 (it is correct) BUT true === 1 (It is incorrect, false)
Example 11: [] == 0
Example 12: true + false = 1
Example 13: 10,2 = 2
Example 14: !!!true = false
Example 15: 010 - 03 = 5
WHY Most of us are IGNORANT of self-upgradation, self-discovery, self-development??? Because the focus is on changing what is visible to the society…such as switching to a high paying job, an…
Thanks to the continuous improvement of information technology and bioscience, the amount of data stored in the medical industry has increased explosively. The huge medical data resources provide…
Mark Mahmood arrived in the United States in February 2010 as a refugee from Iraq after spending three years applying to a United Nations refugee program. He came armed with a few dollars in his…