Computer Science, asked by vp8530637494, 2 months ago

....Property of string object returns of characters in the string

Answers

Answered by sagnikghosh2100
6

Answer:

String Property of string object returns of characters in the string

Explanation:

mark as brainliest

Answered by halamadrid
0

Length Property of string object returns of characters in the string.

  • The length string property in JavaScript is utilized to calculate the length of a string. Since length is a property of the String object, it can only be used with certain String class instances. The string's length is represented by an integer value that the length property returns. In the case of an empty string, the length property will return 0.
  • We should keep in mind that the length property is a string property, not a string method. The length property is read-only.
  • Returns: An integer value representing the length of the string is returned by the length property. In the case of an empty string, the length property will return 0.
  • All characters, which include blank spaces and special characters, are counted by the length attribute. Knowing the length of a string is helpful in a variety of situations, such as using a "for" statement to loop through it, showing a shorter version of the string if it is too lengthy, verifying that the required number of characters were entered for an input (for instance, the username and password), etc.

Therefore, Length Property of string object returns of characters in the string.

#SPJ6

Similar questions