+ 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. _
1st Jul 2019, 5:34 AM
Ginfio
Ginfio - avatar
+ 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."
30th Jun 2019, 9:32 PM
Qasem
+ 4
Mofey I read it several times but I hadn't such conclusion as you said😊
30th Jun 2019, 10:23 PM
Qasem
+ 4
Its used as a variable name to identify the value of something u could name it anything you wanted too.
30th Jun 2019, 10:56 PM
D_Stark
D_Stark - avatar
+ 4
Mofey "value" is not a keyword in JS and can be used as a variable name if you really want to.
1st Jul 2019, 3:45 AM
Sonic
Sonic - avatar
+ 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.
30th Jun 2019, 9:20 PM
Seb TheS
Seb TheS - avatar
+ 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.
30th Jun 2019, 10:26 PM
Seb TheS
Seb TheS - avatar
+ 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. 👌
30th Jun 2019, 11:19 PM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar
+ 2
Its used as a variable name to identify the value of something u could name it anything you wanted too.
1st Jul 2019, 8:59 AM
Ashish Prasad