length Method

Purpose:

Returns the length of a string variable.

Syntax:

.length(substring)

Comments: 

Returns the length of a string

 

Example:

abc = "eebbe"

p abc.length

5