JavaScript

How to Prevent cannot read property split of undefined

The "cannot read property split of undefined" error occurs when