#Javascript String To use a string as the value of a variable, enclose it in single quotes (') or double quotes ("). var jb = 'Lorem ipsum dolor'; var jb = "Lorem ipsum dolor"; If the string has single quotes, enclose it in double quotes, and if there are double quotes, enclose it in single quotes. var jb = 'Lorem "ipsum" dolor.'; var jb = "Lorem 'ipsum' dolor."; If you have single and double qu..