byteNative
Languages

JavaScript

The language of the web, equally at home in the browser and on the server.

What is JavaScript?

JavaScript is the only language that runs directly in every browser, which is exactly why it holds the web together at its core. Through Node the same code runs on the server too, making it unusually versatile. The language has matured a great deal in recent years, from async/await to modules, and is far nicer today than its old reputation suggests. For us it is the foundation that modern frameworks and TypeScript build on in the first place.

More in the documentation

How we use it

We reach for plain JavaScript where a build step makes no sense, such as a small script on an otherwise static page or a lean Cloudflare Worker. We also work directly with it when maintaining older codebases that have no type system. Everywhere else we prefer TypeScript.

js
const city = user?.address?.city ?? "unknown";
const tags = post.tags ?? [];

for (const tag of tags) {
  console.log(tag.toUpperCase());
}
optional chaining and nullish coalescing keep access safe

Good to know

Always check equality with "===", never "==". The loose comparison silently coerces types and treats 0, empty strings and null as the same surprisingly often, which leads to bugs that are hard to track down.

00Languages

More tools we work with in the same area.

Which technology fits you?

You don't have to decide that, it's our job. Tell us about your plans.