0

Can someone please break down strings in JavaScript?

I am having trouble understanding how to use strings in JS

11th Jul 2019, 7:28 AM
Kevin
Kevin - avatar
2 odpowiedzi
+ 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
11th Jul 2019, 7:38 AM
Airree
Airree - avatar
+ 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.
11th Jul 2019, 7:37 AM
Jason Kennedy