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.
2 parents 0c4fa28 + f350f2b commit bf74957Copy full SHA for bf74957
README.md
@@ -275,24 +275,24 @@ function isClientActive(client) {
275
276
**Bad:**
277
```javascript
278
-function dateAdd(date, month) {
+function addToDate(date, month) {
279
// ...
280
}
281
282
const date = new Date();
283
284
// It's hard to to tell from the function name what is added
285
-dateAdd(date, 1);
+addToDate(date, 1);
286
```
287
288
**Good**:
289
290
-function dateAddMonth(date, month) {
+function addMonthToDate(month, date) {
291
292
293
294
295
-dateAddMonth(date, 1);
+addMonthToDate(date, 1);
296
297
**[⬆ back to top](#table-of-contents)**
298
0 commit comments