JavaScript
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
JavaScript-i është gjuha e programimit që i jep jetë faqes: reagon kur klikon një buton, ndryshon përmbajtjen pa e rifreskuar faqen, kontrollon formularët. Punon drejtpërdrejt në shfletues, e me Node.js mund të punojë edhe në server.
EnglishEN
JavaScript is the programming language that brings a page to life: it reacts when you click a button, updates content without reloading, checks forms. It runs right in the browser, and with Node.js it can run on a server too.
Si ta mendosh
Nëse HTML-ja janë muret dhe CSS-ja është dekori, JavaScript-i janë instalimet elektrike: çelësat, dritat, zilja e derës — gjërat që reagojnë kur i prek.
Lexoje në anglisht
If HTML is the walls and CSS is the decor, JavaScript is the electrical wiring: the switches, the lights, the doorbell — the things that respond when you touch them.
Shembull kodijavascript
const butoni = document.querySelector("button");
butoni.addEventListener("click", () => {
butoni.textContent = "U klikua!";
});