init at work
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
# String Literals
|
||||
|
||||
String literals are text values written directly in code.
|
||||
|
||||
## Examples
|
||||
|
||||
```ts
|
||||
const a = 'year';
|
||||
const b = "month";
|
||||
const c = '';
|
||||
```
|
||||
|
||||
`''` is an empty string.
|
||||
|
||||
## Typical Uses
|
||||
|
||||
- Labels and constants.
|
||||
- Comparisons.
|
||||
- Fallback values.
|
||||
|
||||
## Good Practice
|
||||
|
||||
Keep quote style consistent with project conventions.
|
||||
Reference in New Issue
Block a user