MCQs > IT & Programming > JavaScript > Which will correctly split 'str'?

JavaScript MCQs

Which of the following code snippets will correctly split “str”?

Answer

Correct Answer: <script> Var str = ‘something – something_else’; Var substrn = str.split(‘--’); </script>

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