It is a way or a program to differentiate between lower case letters and upper case letters.
A program will treat lower case letters such as “a” as a only , and Upper case letters like “A” as A only.
<html> <head></head> <body> <script> y= 5; Y = 10; result1= y + y; result2 = y + Y; document.write(result1 + "<br>" + result2 ); </script> </body> </html>
When you will run this program, then you will see results:
10 and 15, why so? Let’s see
- 10 -We got 10( 5 +5 ), because variable y has the value 5.
- 15 – We got 15(5 + 10), because variable y has the value 5 and variable Y has value 10.
Note: Always Use document.write() for testing purpose only.