We perform the operation: let x = “abcdefg”.slice(2, 4). As a result, the value:
- “cdef” will be written to the variable x.
- “ab” will be written to the variable x.
- “cd” will be written to the variable x.
- “cdefg” will be written to the variable x.
More Questions: JavaScript Essentials 1 – JSE1: Module 2 Test
Please login or Register to submit your answer