What is a value?  
Interactive code examples (desktop only):
Click on the green run button to run the code. Play with the code, make changes and see how this impacts the results.
Do you not see code snippets below? Please use your browser refresh button.
//JavaScript has several different types of values. These are number...
40;
3.14;
// These are booleans...
true;
false;
//These are strings...
"I am a string and I have double quotes."
'I am also a string, but I have sigle quotes.'
//This is an example of an array. One of the built-in objects types in JavaScripts.
//Make sure to press the little button with the triangle next to the green square bracket symbol once when you view the result…
[1,2,3];
0 comments