Posts

Showing posts with the label String
Show All

Javascript String Single Or Double Quotes

Javascript String Single Or Double Quotes . Double quotes are the only allowed character for strings in json, and html conventions suggest using it. Similarly, if you try to use a double quote inside a string, the outside quotes must be single quotes. Just A Few Things..: Escaping Literal Quotes In Strings: #100Days Of Code D27 from lrbjr.blogspot.com However, both print the same result on the terminal. To replace single with double quotes in a string: You can use single or double quotes: