Search This Blog

Tuesday, March 26, 2013

Object JavaScript

In JavaScript you can define and create your own objects.





<!DOCTYPE html>
<html>
<body>

<script>
    var car = new Object();
    car.type = "Audi";
    car.speed = "300";
    document.write(car.type + " speed is " + car.speed + " KM/Hour.");
</script>

</body>
</html>