¿Qué lenguaje es este?
Lo que escribiste en el tutorial anterior tiene nombre: JavaScript. Acá te explico qué significa eso y por qué no empezamos con Python.
What language is this?
What you wrote in the previous tutorial has a name: JavaScript. Here is what that means and why we did not start with Python.
Existen cientos de lenguajes de programación. Suena abrumador, pero acá va la buena noticia: todos hacen lo mismo. Guardar datos, tomar decisiones, repetir, agrupar instrucciones.
La diferencia es la forma de escribirlo y para qué sirve mejor. Es como el español y el italiano: distintas palabras, mismas ideas.
Por eso aprender el primer lenguaje cuesta, y el segundo cuesta muchísimo menos. Lo que aprendes de verdad no es el idioma, es la forma de pensar.
There are hundreds of programming languages. That sounds overwhelming, but here is the good news: they all do the same things. Store data, make decisions, repeat, group instructions.
The difference is how you write it and what it is best at. Like Spanish and Italian: different words, same ideas.
That is why the first language is hard and the second one is far easier. What you really learn is not the language, it is the way of thinking.
Mira el mismo programa escrito de las dos formas. Muestra un saludo tres veces:
JavaScript — el que usamos acá:
for (let i = 0; i < 3; i++) {
console.log("Hola");
}
Python — el mismo programa:
for i in range(3):
print("Hola")
Python usa menos símbolos: no lleva llaves { } ni
punto y coma. En cambio, los espacios del principio importan — si mueves esa
sangría, el programa cambia de significado.
Ninguno es mejor. Son gustos y usos distintos.
Look at the same program written both ways. It prints a greeting three times:
JavaScript — what we use here:
for (let i = 0; i < 3; i++) {
console.log("Hello");
}
Python — the same program:
for i in range(3):
print("Hello")
Python uses fewer symbols: no braces { }, no
semicolons. In exchange, the leading spaces matter — move that indentation
and the program changes meaning.
Neither is better. They are different tastes and different uses.
| JavaScript | ||
| Python | ||
| Java / Kotlin | ||
| C / C++ |
Por una razón muy concreta: ya lo tienes instalado. Tu navegador —Chrome, Edge, el que sea— trae JavaScript adentro. No hay nada que descargar, ni configurar, ni que se rompa antes de empezar.
Eso importa más de lo que parece. Mucha gente abandona la programación en la instalación, antes de escribir su primera línea. Acá escribiste código en el minuto uno.
Y hay una segunda razón: todo lo que hacemos en JICA LABS está hecho con esto. Los cuatro juegos del sitio son JavaScript corriendo en un navegador. Lo que aprendas acá lo puedes usar para hacer exactamente lo mismo.
Si mañana quieres Python porque te interesa la inteligencia artificial, perfecto — y te va a costar mucho menos, porque las ideas ya las vas a tener.
For a very concrete reason: you already have it installed. Your browser — Chrome, Edge, whichever — has JavaScript built in. Nothing to download, nothing to configure, nothing that breaks before you begin.
That matters more than it sounds. Plenty of people quit programming during installation, before writing a single line. Here you wrote code in minute one.
And a second reason: everything we make at JICA LABS is built with this. The four games on this site are JavaScript running in a browser. What you learn here you can use to make exactly the same thing.
If tomorrow you want Python because AI interests you, great — and it will cost you far less, because you will already have the ideas.
Cuando busques algo en internet vas a encontrar respuestas de varios lenguajes mezcladas, y si copias la del lenguaje equivocado no va a funcionar. Un ejemplo típico:
Para decir "si no se cumple lo anterior, prueba con esto otro", Python escribe
elif. JavaScript escribe else if, separado.
Si copias elif en JavaScript, te da error.
Por eso conviene agregar el lenguaje a tu búsqueda: no busques "cómo repetir algo", busca "cómo repetir algo en JavaScript". Te ahorra horas de confusión.
When you search online you will find answers from several languages mixed together, and copying the wrong one will not work. A classic example:
To say "if the above is not true, try this instead", Python writes
elif. JavaScript writes else if, separated.
Copy elif into JavaScript and you get an error.
So it is worth adding the language to your search: do not search "how to repeat something", search "how to repeat something in JavaScript". It saves hours of confusion.
Que todos los lenguajes hacen lo mismo con distinta escritura. Que estás usando JavaScript y por qué. Que Python es igual de válido pero para otras cosas. Y que al buscar ayuda tienes que decir en qué lenguaje estás.
En el siguiente instalamos lo necesario para programar en tu propio computador, sin depender de esta página.
That every language does the same things with different writing. That you are using JavaScript, and why. That Python is just as valid but for other things. And that when you ask for help you must say which language you are in.
Next we install what you need to program on your own computer, without depending on this page.