JavaScript Object Introduction

An object is an entity which can have properties, events and methods. This example creates a simple string holding the text 'hello world'. Some Standard Objects that are part of the JavaScript are 'String','Date','Array','Boolean','Array','Math' and 'RegExp'.

Other examples in Objects (JavaScript tutorial)
Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0