javascriptOctober 13, 2020
Destructuring assignment in JS
Simple ones javascript const [a, b, ...c] = [10, 20, 100,200] // a= 10, b=20, c=[100,200] const { first, second } = { first: 1, second: 2 } // first = 1, second = 2
javascriptOctober 13, 2020
How to Create an HTML Element with Attributes in One Line in JavaScript
When working on a JavaScript project, it's common to create HTML elements dynamically. Traditionally, you might use several lines of code to create an element and set multiple attributes…
javascriptOctober 13, 2020
Simple Flux architecture with Vue.js
For a small app that only needs a simple state management pattern. I always use one component to hold the state of the app, a container. This act as a single source of truth for an app to refer to…