+ 3
Value being used:
Example:
html
<input type = "text">
<div> </div>
js
div.innerHTML=input.value;
Input type text is a typing box. So the div's inner HTML will be what ever you type inside the input (which is the value of the input)
if i type 'Abcd' inside the input, 'Abcd' is the value of the input - which would be the div's innerHTML too.
_
+ 4
As far as I know value isn't a keyword in JavaScript. But in C# it is:
"The word value references the value that client code is attempting to assign to the property."
+ 4
Mofey I read it several times but I hadn't such conclusion as you saidđ
+ 4
Its used as a variable name to identify the value of something u could name it anything you wanted too.
+ 4
Mofey "value" is not a keyword in JS and can be used as a variable name if you really want to.
+ 3
Mofey No.
You can not define:
var 6 = 9;
var "hello world" = true;
But you can use arrays and objects to achieve the solution you might be searching for.
+ 3
Mofey Value is just information, data, that does not have much predefined meanings, while keyword is an identifier for a statement. Like "var" tells that a variable is being declared.
+ 3
Mofey "Value of a variable" is given by a person, you, so when you're writing a code and you want to define let's say a integer variable named starting_salary, you will provide a value how much is starting salary, for ex. int starting_salary = 1000;
1000 is a value. đ
+ 2
Its used as a variable name to identify the value of something u could name it anything you wanted too.



