Skip to content

Commit

Permalink
javascript -> JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky committed Dec 4, 2024
1 parent ae93749 commit f1aec08
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion coldfusion.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ColdFusion started as a tag-based language. Almost all functionality is availabl
<!--- CFML tags have a similar format to HTML tags. --->
<h1>Simple Variables</h1>
<!--- Variable Declaration: Variables are loosely typed, similar to javascript --->
<!--- Variable Declaration: Variables are loosely typed, similar to JavaScript --->
<p>Set <b>myVariable</b> to "myValue"</p>
<cfset myVariable = "myValue" />
<p>Set <b>myNumber</b> to 3.14</p>
Expand Down
2 changes: 1 addition & 1 deletion es-es/coldfusion-es.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ColdFusion comenzó como un lenguaje basado en etiquetas. Casi toda la funcional
<!--- Las etiquetas CFML tienen un formato similar a las etiquetas HTML. --->
<h1>Variables simples</h1>
<!--- Declaración de variables: las variables son débilmente tipadas, similar a javascript --->
<!--- Declaración de variables: las variables son débilmente tipadas, similar a JavaScript --->
<p>Set <b>miVariable</b> to "miValor"</p>
<cfset miVariable = "miValor" />
<p>Set <b>miNumero</b> to 3.14</p>
Expand Down
2 changes: 1 addition & 1 deletion es-es/haml-es.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $ haml archivo_entrada.haml archivo_salida.html
/
Usa un signo dos puntos para definir filtros Haml, un ejemplo de filtro que
puedes usar es :javascript, el cual puede ser usado para escribir javascript en línea.
puedes usar es :javascript, el cual puede ser usado para escribir JavaScript en línea.
:javascript
console.log('Este es un <script> en linea');
Expand Down
4 changes: 2 additions & 2 deletions it-it/javascript-it.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ i; // = 5 - non è undefined come ci si potrebbe aspettare in un linguaggio con
temporary; // solleva ReferenceError
permanent; // = 10

// Una delle più potenti caratteristiche di javascript sono le closure. Se una funzione è
// Una delle più potenti caratteristiche di JavaScript sono le closure. Se una funzione è
// definita dentro un'altra funzione, la funzione interna ha accesso a le variabili
// della funzione esterna, anche dopo essere uscita dalla funzione esterna.
function sayHelloInFiveSeconds(name){
Expand Down Expand Up @@ -597,7 +597,7 @@ MDN's [A re-introduction to JavaScript][2] copre molti dei concetti qui trattati

[JavaScript: The Right Way][10] è una guida dedicata all'introduzione dei nuovi sviluppatori a JavaScript e come aiuto agli sviluppatori esperti per imparare di più sulle best practice.

[javascript.info][11] è un moderno tutorial su javascript che copre le basi (linguaggio principale e lavorazione con un browser) come anche argomenti avanzati con spiegazioni concise.
[javascript.info][11] è un moderno tutorial su JavaScript che copre le basi (linguaggio principale e lavorazione con un browser) come anche argomenti avanzati con spiegazioni concise.


In aggiunta ai contributori di questo articolo, alcuni contenuti sono adattati dal Louie Dinh's Python tutorial su questo sito, e da [JS Tutorial][7] sul Mozilla Developer Network.
Expand Down
2 changes: 1 addition & 1 deletion it-it/solidity.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ modifier checkValue(uint amount) {
// Troviamo tutte le istruzioni condizionali di base - incluse if/else, for,
// while, break, continue e return - ma non c'è lo switch
// La sintassi è la stessa di javascript, ma non esiste la conversione di tipo
// La sintassi è la stessa di JavaScript, ma non esiste la conversione di tipo
// in booleano dai non booleani (bisogna usare gli operatori logici per
// ottenere il valore boolean)
Expand Down
2 changes: 1 addition & 1 deletion javascript.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ attached terminal
[JavaScript: The Right Way][10] is a guide intended to introduce new developers
to JavaScript and help experienced developers learn more about its best practices.

[javascript.info][11] is a modern javascript tutorial covering the basics (core language and working with a browser)
[javascript.info][11] is a modern JavaScript tutorial covering the basics (core language and working with a browser)
as well as advanced topics with concise explanations.


Expand Down
8 changes: 4 additions & 4 deletions ms-my/javascript-my.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ myArray.length; // = 4
// Tambah/Ubah di index yang spesifik
myArray[3] = "Hello";

// Objek javascript adalah sama dengan "dictionaries" atau "maps" dalam bahasa
// Objek JavaScript adalah sama dengan "dictionaries" atau "maps" dalam bahasa
// aturcara yang lain: koleksi pasangan kunci-nilai yang tidak mempunyai
// sebarang susunan.
var myObj = {key1: "Hello", key2: "World"};

// Kunci adalah string, tetapi 'quote' tidak diperlukan jika ia adalah pengecam
// javascript yang sah. Nilai boleh mempunyai sebarang jenis.
// JavaScript yang sah. Nilai boleh mempunyai sebarang jenis.
var myObj = {myKey: "myValue", "my other key": 4};

// Ciri - ciri objek boleh juga diakses menggunakan syntax subskrip (kurungan-
Expand Down Expand Up @@ -293,7 +293,7 @@ switch (grade) {
///////////////////////////////////
// 4. Functions, Skop dan Closures

// Function javascript dideklarasikan dengan kata kunci `function`.
// Function JavaScript dideklarasikan dengan kata kunci `function`.
function myFunction(thing){
return thing.toUpperCase();
}
Expand All @@ -309,7 +309,7 @@ function myFunction(){
}
myFunction(); // = undefined

// Function javascript adalah objek kelas pertama, maka ia boleh diberikan
// Function JavaScript adalah objek kelas pertama, maka ia boleh diberikan
// nama pembolehubah yang lain dan diberikan kepada function yang lain sebagai
// input - sebagai contoh, apabila membekalkan pengendali event:
function myFunction(){
Expand Down
6 changes: 3 additions & 3 deletions pt-br/lua-pt.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ print 'hello' -- Funciona perfeitamente.

-- Tabelas = A unica estrutura de dados composta em Lua;
-- elas são matrizes associativas.
-- Semelhantes aos arrays de PHP ou objetos de javascript, eles são:
-- Semelhantes aos arrays de PHP ou objetos de JavaScript, eles são:
-- hash-lookup(chave:valor) que também podem ser usados como listas.

-- Usando tabelas como dicionário / mapas:

-- Dicionários literais tem strings como chaves por padrão:
t = {key1 = 'value1', key2 = false}

-- As chaves do tipo string podem usar notação de ponto,semelhante a javascript:
-- As chaves do tipo string podem usar notação de ponto, semelhante a JavaScript:
print(t.key1) -- Imprime 'value1'.
t.newKey = {} -- Adiciona um novo par chave/valor.
t.key2 = nil -- Remove key2 da tabela.
Expand Down Expand Up @@ -219,7 +219,7 @@ setmetatable(f2, metafraction)
s = f1 + f2 -- chama __add(f1, f2) na metatabela de f1

-- f1, f2 não tem chave para sua metatabela, ao contrário de
-- prototypes em javascript, então você deve recuperá-lo com
-- prototypes em JavaScript, então você deve recuperá-lo com
-- getmetatable(f1). A metatabela é uma tabela normal
-- com chaves que Lua reconhece, como __add.

Expand Down
2 changes: 1 addition & 1 deletion solidity.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ modifier checkValue(uint amount) {
// All basic logic blocks work - including if/else, for, while, break, continue
// return - but no switch
// Syntax same as javascript, but no type conversion from non-boolean
// Syntax same as JavaScript, but no type conversion from non-boolean
// to boolean (comparison operators must be used to get the boolean val)
// For loops that are determined by user behavior, be careful - as contracts have a maximal
Expand Down
2 changes: 1 addition & 1 deletion ta-in/javascript-ta.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ filename: javascript-ta.js
lang: ta-in
---

javascript 1995 ஆம் ஆண்டு Netscape இல் பணிபுரிந்த Brendan Eich
JavaScript 1995 ஆம் ஆண்டு Netscape இல் பணிபுரிந்த Brendan Eich
என்பவரால் உருவாக்கபட்டது.ஆரம்பத்தில் மிகவும் எளிமையான
ஸ்க்ரிப்டிங் மொழியாக இணையதளங்களில் பயன்படுத்தபட்டது.
இது ஜாவா (java ) வில் உருவாக்கபட்ட மிகவும் சிக்கலான இணைய செயலிகளுக்கு
Expand Down
8 changes: 4 additions & 4 deletions zh-cn/javascript-cn.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ myArray.length; // = 4
// 在指定下标添加/修改
myArray[3] = "Hello";

// javascript中的对象相当于其他语言中的“字典”或“映射”:是键-值对的无序集合。
// JavaScript中的对象相当于其他语言中的“字典”或“映射”:是键-值对的无序集合。
var myObj = {key1: "Hello", key2: "World"};

// 键是字符串,但如果键本身是合法的js标识符,则引号并非是必须的。
Expand Down Expand Up @@ -257,7 +257,7 @@ function myFunction()
}
myFunction(); // = undefined

// javascript中函数是一等对象,所以函数也能够赋给一个变量,
// JavaScript中函数是一等对象,所以函数也能够赋给一个变量,
// 并且被作为参数传递 —— 比如一个事件处理函数:
function myFunction(){
// 这段代码将在5秒钟后被调用
Expand Down Expand Up @@ -288,7 +288,7 @@ i; // = 5 - 并非我们在其他语言中所期望得到的undefined
temporary; // 抛出引用异常ReferenceError
permanent; // = 10

// javascript最强大的功能之一就是闭包
// JavaScript最强大的功能之一就是闭包
// 如果一个函数在另一个函数中定义,那么这个内部函数就拥有外部函数的所有变量的访问权,
// 即使在外部函数结束之后。
function sayHelloInFiveSeconds(name){
Expand Down Expand Up @@ -447,7 +447,7 @@ String.prototype.firstCharacter = function(){
}
"abc".firstCharacter(); // = "a"

// 这个技巧经常用在“代码填充”中,来为老版本的javascript子集增加新版本js的特性
// 这个技巧经常用在“代码填充”中,来为老版本的JavaScript子集增加新版本js的特性
// 这样就可以在老的浏览器中使用新功能了。

// 比如,我们知道Object.create并没有在所有的版本中都实现,
Expand Down
14 changes: 7 additions & 7 deletions zh-cn/solidity-cn.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Solidity 是一种与 JavaScript 和 C 的相似的、静态类型的合约编
以太坊合约的例子包括众筹、投票以及盲拍(私密拍卖)。

Solidity 代码中存在高风险和高成本的错误,因此你必须非常小心地进行测试并慢慢地发布。**随着
以太坊的快速变化,本文档不可能是最新的,所以你应该关注最新的的 solidity 聊天室和以太网博客。
以太坊的快速变化,本文档不可能是最新的,所以你应该关注最新的的 Solidity 聊天室和以太网博客。
照搬这里的代码,会存在重大错误或弃用代码模式的风险。(说人话--别照抄例子中的代码)**

与其他代码不同,可能还需要添加如暂停、弃用和限制使用的设计模式,来降低风险。本文档主要讨论语法,
Expand Down Expand Up @@ -61,7 +61,7 @@ contract SimpleBank { // 单词首字母大写
// Events(事件) - 向外部监听器发布动作
event LogDepositMade(address accountAddress, uint amount);
// Constructor(构造函数)(译者注:solidity 从0.4.22开始使用 constructor() 作为构造函数)
// Constructor(构造函数)(译者注:Solidity 从0.4.22开始使用 constructor() 作为构造函数)
function SimpleBank() public {
// msg 提供了发送给合约的消息详情
// msg.sender 是合约的调用者(这里是合约创建者的地址)
Expand Down Expand Up @@ -112,7 +112,7 @@ contract SimpleBank { // 单词首字母大写
// ** 例子结束 **
// 下面, solidity 基础
// 下面, Solidity 基础
// 1. 数据类型与关联的方法
// uint 类型用作现金数量(没有双浮点型或单浮点型)及日期(用 unix 时间)
Expand Down Expand Up @@ -266,7 +266,7 @@ uint createdState = uint(State.Created); // 0
// 3. 简单操作符
// solidity 提供了比较、位运算及数学运算的功能
// Solidity 提供了比较、位运算及数学运算的功能
// 指数运算: **
// 异或运算: ^
// 按位取反: ~
Expand Down Expand Up @@ -376,7 +376,7 @@ LogSent(from, to, amount);
/*
// 对于外部方(合约或外部实体),使用 Web3 JavaScript 库来监听
// 以下是javascript代码,不是solidity代码
// 以下是JavaScript代码,不是Solidity代码
Coin.LogSent().watch({}, '', function(error, result) {
if (!error) {
console.log("Coin transfer: " + result.args.amount +
Expand Down Expand Up @@ -425,7 +425,7 @@ modifier checkValue(uint amount) {
// 所有基本的逻辑判断都有效 - 包括 if else, for, while, break, continue
// return - 但不跳转
// 语法同 javascript, 但没有从非布尔值到布尔值的类型转换
// 语法同 JavaScript, 但没有从非布尔值到布尔值的类型转换
// (必须使用比较操作符获得布尔变量值)
// 请注意由用户行为决定的循环 - 因为合约对于代码块具有最大量的 gas 限制 -
Expand Down Expand Up @@ -744,7 +744,7 @@ sha256("def");
// 11. 安全
// 以太坊的合约中,错误可能是灾难性的 - 即使在 solidity 中是流行的模式,也可能发现是反模式的
// 以太坊的合约中,错误可能是灾难性的 - 即使在 Solidity 中是流行的模式,也可能发现是反模式的
// 参见文档底部的安全链接
Expand Down

0 comments on commit f1aec08

Please sign in to comment.