Day 1 - Basic JS Concepts and Data Types
JavaScript is case sensitive. Therefore a variable name "empcode" is not the same as "Empcode" or a function name "PayCalculation" is not the same as "paycalculation".
var empcode ='E1001';
console.log('Empcode :'+Empcode);
//Error- Empcode is not defined
In general, whitespace is not visible on the screen, including spaces, tabs and newline characters. Whitespace enhances readability of the JavaScript code. If used within string constant, JavaScript considers it, but if not so, it ignores whitespace.
var x = 1000;
the space between var and 'x' cannot be removed, but the other spaces can be removed.