<!DOCTYPE html>
<html>
<body>
<p>Creating a JavaScript Object.</p>
<p id="demo"></p>
<script>
var person = {
firstName : "John",
"lastName" : "Doe",
age : 50,
"eyeColor" : "blue"
};
document.getElementById("demo").innerHTML =
person.firstName + " " + person.lastName + " is " + person.age + " years old.";
</script>
</body>
</html>
result is ---> John Doe is 50 years old. here whether the property firstName,"lastName" is enclosed in quotes or not the code still works.but what is the technical difference and in which cases it won't work for example in JSON the person object's firstName property is invalid json syntax unless the quotes are present. but javascript allows either syntax to work