single quotes or double quotes in typescript code example
Example: typescript single or double quotes
in JS/TS single quotes are preferred because:
- single quotes makes for easier reading when marking up html strings in the typescript
- double quotes are more often escaped than single quotes in strings
note: whats most important however is consitency!