0
Can someone please break down strings in JavaScript?
I am having trouble understanding how to use strings in JS
2 Answers
+ 2
They contain text of any length. They are enclosed in single/double quotes. They have a various amount of methods, which you can check out here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/prototype
+ 1
a string is anything used in quotes.
1 is a number. "1" is a string
basically a string is coversational..data that is meant to portray sentences or words.