0
   

Dynamic types in Javascript

 
 
Reply Sat 10 Sep, 2011 12:55 pm
In JavaScript, a variable can hold different type of values. An example is given below:
var x;
x = 10;
.
x = true;
.
x = "hello";
.
x = Obj.n;

Can any one give me an actual code (a function) used on the web that use the same concept in JavaScript?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 606 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Dynamic types in Javascript
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/17/2024 at 11:58:58