We perform the operation: let x = "abcdefg".slice(2, 4)
. As a result, the value:
"ab"
will be written to the variablex
"cd"
will be written to the variablex
"cdef"
will be written to the variablex
"cdefg"
will be written to the variablex
Answers Explanation & Hints:
The The resulting substring will be “cd”, and it will be assigned to the variable |