Course Solutions Uncategorized (Solved) : 21 Var Word Information Var Mystery Wordtouppercase Mystery 22 Value Copy Following Code S Q30645702 . . . .

(Solved) : 21 Var Word Information Var Mystery Wordtouppercase Mystery 22 Value Copy Following Code S Q30645702 . . . .

 

21.

var word = “information”;

var mystery = word.toUpperCase( );

What is mystery?

22.

What will be the value of copy after the following code segmentis executed?

str=’HTML’;
copy = ‘ ‘;

i = 0;
while ( i<str.length)
{
copy = copy + str.charAt(i) + ‘-‘;
i = i + 1;
}

23.

What will be the value of copy after the following code segmentis executed?

str=’CSC101′;
copy = ‘ ‘;

i = 0;
while ( i<str.length)
{
copy =  str.charAt(i) + copy ;
i = i + 1;
}

24.

What will be the value of str after the following code segmentis executed?

var str = “computer”;
var i = str.search(/[aeiou]/);
while(i!=-1)
{
str = str.substring(0, i) +’*’+ str.substring(i+1,str.length);
i = str.search(/[aeiou]/);

}

Expert Answer


An answer will be send to

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Answer 1 1 Done Duestian Solutionm Step 1 Rule P Cous Xep5 P Modus Tollens Modus Ponens 5 Q34744066 . . . .(Solved) : Answer 1 1 Done Duestian Solutionm Step 1 Rule P Cous Xep5 P Modus Tollens Modus Ponens 5 Q34744066 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F54d%2F54d3d6ad-77cb-4ef6-b3e9-c4857e0a47c9%2Fimage.png" alt="Answer 1 of 1 Done Duestian :- solutionm:- Step 1( Rule P Cous xep5 P (modus Tollens modus ponens (5)(6)" aria-describedby="d3f"/>The question is : write and / or