WebDevFix - For web development

Find tutorials, fixes, code snippets and more related to web development.

Subtract Days and Months from Javascript Date
At some point, we may need to subtract days or months from the Javascript Date Object. Let's say we have a date filter and it has start Date and end Date, but the start date should be the one month less than the current date. It's very easy to implement.
6 months ago
Converting array of paths to javascript tree object
Let's see how to create a javascript object by converting array of folder/path. This is useful in NodeJs to convert directory structure into Object.
1 year ago
Make footer stay at the bottom of the page layout in css
When developing a webpage, the basic layout we need is a header, body, and footer. By default, the footer will not stay at the bottom if there is no content in the body. One of the simple ways to make the footer stick to the bottom is using a CSS flexbox.
1 year ago
Make Vuex store data reactive in VueJs
Changing the Vuex store's data directly won't be reactive and the components consuming those won't update. There are two ways to make the store's data reactive.
1 year ago
Simulating async await in javascript
Sometimes we may need to simulate async/await locally for testing purposes instead of calling the actual API.
1 year ago
All posts 5 Javascript 3 Css 1 Vue 1
WebDevFix
Copyright © 2023 webdevfix.com
Contact Privacy Policy