What Value do you put for Length in Quotes #2635
-
What value do you put for length in quotes? |
Beta Was this translation helpful? Give feedback.
Answered by
unrealapex
Mar 6, 2022
Replies: 1 comment 1 reply
-
For the quote length, you put the length in characters of the {
text: "The quick brown fox jumped over the lazy dog",
source: "Unknown",
length: 44,
id: 1
} You can get the character count of any string in JavaScript using the let x = "The quick brown fox jumped over the lazy dog";
// 44
console.log(x.length); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tajhans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the quote length, you put the length in characters of the
text
(the quote text) property:You can get the character count of any string in JavaScript using the
length
property(useful for long strings where you can't count manually or have your text editor show you when you highlight it):