MCQs > IT & Programming > JavaScript > Consider the following code snippet: var myJSONObject = {'ircEvent': 'PRIVMSG', 'method': 'newURI', 'regex': '^http://.*'}; What is the best way to remove the property 'regex', so the result would be this code snippet? myJSONObject == {'ircEvent': 'PRIVMSG', 'method': 'newURI'};

JavaScript MCQs

Consider the following code snippet: var myJSONObject = {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}; What is the best way to remove the property 'regex', so the result would be this code snippet? myJSONObject == {"ircEvent": "PRIVMSG", "method": "newURI"};

Answer

Correct Answer: delete myJSONObject.regex;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it