# \#javascript

**URL:** https://discuss.tryton.org/tag/javascript/50.md

[Latest](https://discuss.tryton.org/latest.md) · [Categories](https://discuss.tryton.org/categories.md) · [Tags](https://discuss.tryton.org/tags.md)

---

## [Usage of var, let and const in Javascript](https://discuss.tryton.org/t/usage-of-var-let-and-const-in-javascript/7775)

<div class="topic-metadata">

**Author:** [@ced](https://discuss.tryton.org/u/ced)\
**Replies:** 0\
**Last updated:** [August 31, 2024, 12:24pm UTC](https://discuss.tryton.org/t/usage-of-var-let-and-const-in-javascript/7775 "2024-08-31T12:24:51Z")

</div>

We require ES6 for sao. This means that we can use let and const instead of var to declare variables. The scoping of var makes it more error prone and difficult to use but we have a legacy usage of it. Now we start to …
