Javascript is a programming language. This language contains values and variables that are assigned to each piece of data. Variables contain a value. For example, you can use the word:
let
and add the variable name “mytext” (as shown below)
let mytext
Then, you add the value.
let mytext = “I love Javascript”
Now each time you use the variable “mytext” in your code, the code will input the original value, “I love Javascript”
This is useful because codes can be very complex, and values and variables help so that you don’t have to retype each value throughout your code.
Leave a Reply
You must be logged in to post a comment.