What will be the result of the following code? document.getElementById("banana").className = document.getElementById("banana").className.replace( /(?:^|\s)apple(?!\S)/g ,'e' );
Correct Answer: Replace class ‘apple’ with ‘e’ in the HTML element which contains ID ‘banana’
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions