0
I cant understand the string clearly!!.plz help
can any one help me
3 Réponses
+ 8
Hope this helps:
https://www.w3schools.com/js/js_strings.asp
+ 6
What is a string?
A string is a sequence of characters.
You need to know what a "sequence" is and what a "character" is to understand the above statement.
-A sequence is a particular order in which things follow. So "123456" and "ABCDEF" are sequences.
-A character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written form of a natural language. So "quot; can be a character or "A" or anything you can input on your keyboard.
So now that we know what a sequence is and what a character is, we can combine the two to create a string.
"My Nam3 1$_Gavin" - this is a string
In programming languages, you must put your string in between double or single quotes for it to be a string. That's it.
https://www.sololearn.com/discuss/452538/?ref=app
+ 2
A "string" in JavaScript is a primitive data-type. it's enclosed in either single 'quote' or double "quote".