CODING 2 min. of reading.

EsJS: JavaScript with spanish syntax

EsJS is a programming language that uses the same syntax as JavaScript, but in Spanish. Come and discover it!

Enzo Notario
Enzo Notario
December 12, 2023
EsJS: JavaScript with spanish syntax

EsJS is a programming language in Spanish that compiles to JavaScript. It is designed to make learning programming easier for people who don’t speak English, while leveraging the power and versatility of JavaScript.

funcion principal() {
    const ahora = crear Fecha()
    const hora = ahora.obtenerHoras()
    
    si (hora < 12) {
        consola.escribir("Buenos días")
    } sino si (hora < 18) {
        consola.escribir("Buenas tardes")
    } sino {
        consola.escribir("Buenas noches")
    }
}

principal()

Try this example in EsJS Editor

Compatibility with JavaScript

EsJS is based on JavaScript, making it 100% compatible with the JavaScript ecosystem. This language allows you to import JavaScript libraries and vice versa. Since it’s built on JavaScript, you can write code in Spanish (EsJS) and also in English (JavaScript). It’s also possible to obtain the equivalent JavaScript code from EsJS code, making it ideal to start learning in Spanish/EsJS and gradually transition to English/JavaScript.

EsJS Editor

EsJS Editor is an online code editor that lets you write and run EsJS code directly in your browser. It’s great for learning to program in Spanish, as it allows you to see the results of your code in real time.

Interactive Tutorial

EsJS offers an interactive tutorial (currently in development) that provides a dynamic and engaging learning experience.

Documentation

The documentation for EsJS is available at es.js.org.

Challenge

In the following EsJS Editor, write a function that determines whether a year is a leap year. A year is a leap year if it is divisible by 4, except those divisible by 100 but not by 400. This EsJS Editor includes tests that will help you check if your solution is correct.