Initialize string by single quotes or double quotes

Would you initialize your strings through single quotes or double quotes?

E

Expert

Verified

Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

   Related Questions in Science

©TutorsGlobe All rights reserved 2022-2023.