- Forums
- Javascipt
- How To Assign A Value To A Variable In Javascript
This Page Contains information about How To Assign A Value To A Variable In Javascript By web hosting in category Javascipt with 0 Replies. [2168], Last Updated: Mon Jun 24, 2024
web hosting
Sat Apr 19, 2008
0 Comments
366 Visits
in our last post i showed you how to declare a variable, now that you know how to declare a variable, you can assign the value to that variable. so for example, i have a variable called users
var users
so this is the code i would use to give it a value
var users = 200
what this tells your code is that the value of users is equals to 200