answersLogoWhite

0

Just about everything in Javascript is an "object" that inherits the prototype of Object, so initializing a variable most likely results in a new object being created.

<pre>

var obj1 = {}; // preferred method of creating an empty object

var obj2 = new Object(); // instantiate new generic object

var str = "Hello World"; // Implicit String Object instantiation

var another = new String("Hello World"); // String Object

var num = 1; // Number object

</pre>

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Can Javascript create 3D?

Javascript is a browser-run script, so I highly doubt that Javascript possesses the capabilities to create 3-D images, but it can input them into the webpage.


What does the icon look like to get a new document?

it meaans to idinfed a obeject of its movement


Is JavaScript or Dreamweaver better?

Not comparable. JavaScript is a programming language. Dreamweaver is an application (which you can use to create pages with javascript, html, etc.)


How do you create a simple JavaScript message inside the HTML?

You need to type the following code to create a simple JavaScript message inside the HTML


Can you create a forum in a webpage?

Yes, we can create a forum on a page. It would require HTML, CSS and JavaScript.


How can one use JavaScript to open a window?

JavaScript contains a function that is specifically written and designed for the purpose of opening a new window. In Javascript, this function is simply called 'open new window'. When this object is initiated, one can determine the properties of the window to be called and open a new window using JavaScript.


Can an entire website be written in Javascript?

No. The website is still going to need to be displayed in HTML, and CSS is going to be needed to create the layout. While you could use JavaScript to create the HTML structure, you still will need a base HTML document just to get the browser to call the JavaScript's initial functions.


What is an example of a JavaScript statement being used to create an object used to hold a graphic image?

1) myImage = new Image 2)blueArrow = new Image 3)redArrow = new Image 4)something = new Image


What conditions will tend to prevent an obeject from moving?

i dont now


What you need to study to create your website?

I would suggest you start with HTML and then move on to JavaScript VBScript would come after that. EX: &lt;html&gt;&lt;body&gt;&lt;!--HTML HERE--&gt; &lt;!--JAVASCRIPT STARTS BELOW--&gt; &lt;script language="JavaScript"&gt; //JAVASCRIPT HERE &lt;/script&gt; &lt;!--JAVASCRIPT ENDS HERE--&gt; &lt;!--VBSCRIPT STARTS BELOW--&gt; &lt;script language="VBScript"&gt; 'VBSCRIPT HERE &lt;/script&gt; &lt;/body&gt;&lt;/html&gt;


Difference between vbscript and java script?

Visual Basic script and JavaScript are both programming languages. JavaScript is used primarily to create websites, and has no user interface. Visual Basic is used to create software applications, has a user interface, and is less heavy on the code than JavaScript.


How do you create a function in HTML?

You don't. You can only create it in Scripting languages like Javascript or Server Side languages like PHP.