Lessons·teens · beginner
JavaScript: Make Your Page Interactive
Learn variables, functions, and logic in JavaScript. Write real programs that run in the browser.
About 35 minutes

JavaScript Terms
These words are used in every programming language. Learn them once, use them everywhere.
| English | Türkçe |
|---|---|
| variableA variable stores a value like a name or number. | değişkenBir değişken, isim veya sayı gibi bir değeri depolar. |
| functionA function is a reusable block of code. | fonksiyonFonksiyon, tekrar tekrar kullanılabilen bir kod bloğudur. |
| string"Hello" is a string — text inside quotes. | metin dizisi"Hello" bir string'dir — yani tırnak içindeki metin. |
| number42 is a number — no quotes needed. | sayı42 bir sayıdır — tırnak kullanmana gerek yok. |
| booleantrue or false — used for yes/no decisions. | mantıksal değertrue veya false — evet/hayır kararları için kullanılır. |
| arrayAn array is a list: [1, 2, 3]. | diziBir array bir listedir: [1, 2, 3]. |
| loopA loop repeats code multiple times. | döngüBir döngü, kodu birden fazla kez tekrarlar. |
| conditionAn if condition runs code only when something is true. | koşulBir if koşulu, kodu sadece bir şey doğru olduğunda çalıştırır. |
| returnA function uses return to send back a result. | döndürmekBir fonksiyon, bir sonuç geri göndermek için return kullanır. |
| consoleconsole.log() prints a message for debugging. | konsolconsole.log(), hata ayıklamak için bir mesaj yazdırır. |
What is JavaScript?

JavaScript (JS) is the programming language of the web. While HTML builds the structure and CSS adds style, JavaScript adds behaviour — it makes things happen.
JavaScript can:
• Respond to button clicks
• Change text and colours on the page
• Calculate numbers
• Fetch data from the internet
• Build entire applications
Every website you use — Instagram, YouTube, Google — runs JavaScript.
Challenge 1: Variables
Challenge 2: Functions
Challenge 3: Conditions (if / else)
Challenge 4: Arrays and Loops
Challenge 5: Build a Grade Calculator
Knowledge Check: JavaScript
Now actually practise it
Reading a lesson is the easy half. A free account unlocks the parts that make it stick — listen to every word in a British accent, and use it in a live conversation with James. Your progress is saved and the words come back for review before you forget them.