Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2837f0f commit fd293bcCopy full SHA for fd293bc
README.md
@@ -295,24 +295,24 @@ function isClientActive(client) {
295
296
**Bad:**
297
```javascript
298
-function dateAdd(date, month) {
+function addToDate(date, month) {
299
// ...
300
}
301
302
let date = new Date();
303
304
// It's hard to to tell from the function name what is added
305
-dateAdd(date, 1);
+addToDate(date, 1);
306
```
307
308
**Good**:
309
310
-function dateAddMonth(date, month) {
+function addMonthToDate(date, month) {
311
312
313
314
315
-dateAddMonth(date, 1);
+addMonthToDate(date, 1);
316
317
**[⬆ back to top](#table-of-contents)**
318
0 commit comments