Question: QUESTION 1 (language knowledge comprehension, 5 marks) There are five errors in lines of the code below. List five of them and: identify the line

 QUESTION 1 (language knowledge comprehension, 5 marks) There are five errors

QUESTION 1 (language knowledge comprehension, 5 marks) There are five errors in lines of the code below. List five of them and: identify the line by number, state if the error is an interpreter (syntax) error or a runtime (logic) error, and . give a corrected version of the entire line 01 var msg I wish to wish the WISH you wish to wish but if you wish' 02 03 04 05 document.writeIn(Found countTerms(msg) +'wishes.); 06 07 function countTerms(phrase) -{ 08 var i-l; 09 var count 0 10 | var terms = phrase.split( '); 11 | for (i = 0; i + 'the WISH the witches wish I won't wish the WISH you wish + 'to wish' if (terms[i].toUppercase)'WISH') count++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!