From dcdccaaecc9bc3a7906d42608ae11a92483451e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0ulovsk=C3=BD?= Date: Thu, 30 Jun 2022 21:20:49 +0200 Subject: [PATCH] Elaborate capitalization common best practices --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ac0c9a4..a020998 100644 --- a/README.md +++ b/README.md @@ -2570,6 +2570,9 @@ const DAYS_IN_MONTH = 30; const SONGS = ['Back In Black', 'Stairway to Heaven', 'Hey Jude']; const ARTISTS = ['ACDC', 'Led Zeppelin', 'The Beatles']; +const discography = getArtistDiscography('ACDC'); +const beatlesSongs = SONGS.filter((song) => isBeatlesSong(song)); + function eraseDatabase() {} function restoreDatabase() {} @@ -2579,6 +2582,7 @@ type Container = { /* ... */ } Prefer using `PascalCase` for class, interface, type and namespace names. Prefer using `camelCase` for variables, functions and class members. +Prefer using capitalized `SNAKE_CASE` for constants. **[⬆ back to top](#table-of-contents)**