---
title: "javascript | Today I Learned | OOZOU"
description: "Short, practical javascript notes from the OOZOU team."
canonical: https://oozou.com/til-topics/javascript
locale: en
---

# javascript | Today I Learned

> Short, practical javascript notes from the OOZOU team.

- [Destructuring assignment in JS](https://oozou.com/til/destructuring-assignment-in-js-22) ([markdown](https://oozou.com/til/destructuring-assignment-in-js-22.md)) (2020-10-13): 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
- [How to Create an HTML Element with Attributes in One Line in JavaScript](https://oozou.com/til/how-to-create-an-html-element-with-attributes-in-one-line-in-javascript-69) ([markdown](https://oozou.com/til/how-to-create-an-html-element-with-attributes-in-one-line-in-javascript-69.md)) (2020-10-13): 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…
- [Simple Flux architecture with Vue.js](https://oozou.com/til/simple-flux-architecture-with-vue-js-50) ([markdown](https://oozou.com/til/simple-flux-architecture-with-vue-js-50.md)) (2020-10-13): 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…

All notes: [Today I Learned](https://oozou.com/til) ([markdown](https://oozou.com/til.md)).

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
