How to Convert a String to Boolean in JavaScript | CodeTrail