JavaScript
Mandhari
JavaScript | |
---|---|
Shina la studio | namna :namna nyingi |
Imeanzishwa | Desemba 4 1995 |
Mwanzilishi | Brendan Eich |
Ilivyo sasa | Ilivutwa na: AWK[5], C, HyperTalk, Java[6], Lua, Perl, Python, Scheme, Self
Ilivuta: ActionScript, AtScript, CoffeeScript, Dart, JScript .NET, LiveScript, Objective-J, Opa, QML, Raku, TypeScript |
Mahala | Netscape Communications Corporation, Mozilla Foundation, Ecma International |
JavaScript ni lugha ya programu. Iliundwa na Brendan Eich na ilianzishwa 4 Desemba 1995. Leo tunatumia Javascript kusudi kuzijenga tovuti. Ilivutwa na Python.
Historia
[hariri | hariri chanzo]Ilianzishwa 4 Desemba 1995 katika Netscape. Kisha Ilitelekezwa katika Microsoft 1996.
Falsafa
[hariri | hariri chanzo]Namna ya JavaScript ni namna nyingi.
Sintaksia
[hariri | hariri chanzo]Sintaksia ya JavaScript ni rahisi sana.
Mifano ya JavaScript
[hariri | hariri chanzo]Programu kwa kuchapa « Jambo ulimwengu ! ».
consol.log("Jambo ulimwengu !");
Programu kwa kuhesabu factoria ya nambari moja.
function factorial(n) {
if (n === 0)
return 1; // 0! = 1
return n * factorial(n - 1);
}
factorial(3); // returns 6
Marejeo
[hariri | hariri chanzo]- Exploring ES2016 and ES2017 Archived 27 Aprili 2020 at the Wayback Machine. – what's new in ECMAScript 2016 and ECMAScript 2017 (ECMAScript is the standard specification that JavaScript follows)
- Google JavaScript Style Guide – Google’s coding standards for source code in JavaScript
- Human JavaScript – "tools, patterns, and approaches optimized for people"
- JavaScript Garden Archived 27 Aprili 2020 at the Wayback Machine. – collection of tips and documentation on JavaScript's quirks
- JavaScript Guide – programmer's manual, from the Mozilla Developer Network