Question: Based on the following code fragment, for extracting the word know from the sentence, what are the values of x and y respectively? var a
Based on the following code fragment, for extracting the word "know" from the sentence, what are the values of x and y respectively?
var a "You know the rules and so do I!";
var result asubstringx y;
alertresult;
A
x y
B
x y
C
x y
D
x y
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
