Follow the steps given below
to write a program:
-
Store "LetUsCreateALongString"
in the longString
variable.
-
Use the slice
method
to extract the characters
from positions 5 to 11
from the longString
variable.
-
Then use console.log()
to show the result.