How to write a JavaScript expression that produces true if a string s contains a comma, and false otherwise?

I need write a JavaScript countenance which produces loyal if a fibre s contains a comma, and
false otherwise. we am not certain how to do this, interjection for a help!

One thought on “How to write a JavaScript expression that produces true if a string s contains a comma, and false otherwise?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>