Skip to content

Commit

Permalink
FIX inconsistent use of 'JavaScript' casing (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Sep 14, 2021
1 parent f05f8ad commit 85052ac
Show file tree
Hide file tree
Showing 106 changed files with 138 additions and 138 deletions.
2 changes: 1 addition & 1 deletion de/1/00-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Du denkst also, Du hast das Zeug ein **CryptoZombie** zu werden, huh?

Dieser Kurs wird Dir zeigen, wie man **ein Spiel auf Ethereum entwickelt**.

Er richtet sich an Anfänger von Solidity. Wir gehen aber davon aus, dass Du ein bisschen Erfahrungen im programmieren in einer anderen Sprache hast (z.B. Javascript).
Er richtet sich an Anfänger von Solidity. Wir gehen aber davon aus, dass Du ein bisschen Erfahrungen im programmieren in einer anderen Sprache hast (z.B. JavaScript).
2 changes: 1 addition & 1 deletion de/1/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Example:
}


Your app front-end could then listen for the event. A javascript implementation would look something like:
Your app front-end could then listen for the event. A JavaScript implementation would look something like:

YourContract.IntegersAdded(function(error, result) {
// do something with result
Expand Down
6 changes: 3 additions & 3 deletions de/1/web3js.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ material:
hideSliders: true
answer: 1
---
Our Solidity contract is complete! Now we need to write a javascript frontend that interacts with the contract.
Our Solidity contract is complete! Now we need to write a JavaScript frontend that interacts with the contract.

Ethereum has a Javascript library called ***Web3.js***.
Ethereum has a JavaScript library called ***Web3.js***.

In a later lesson, we'll go over in depth how to deploy a contract and set up Web3.js. But for now let's just look at some sample code for how Web3.js would interact with our deployed contract.

Expand Down Expand Up @@ -68,7 +68,7 @@ Don't worry if this doesn't all make sense yet.
}


What our javascript then does is take the values generated in `zombieDetails` above, and use some browser-based javascript magic (we're using Vue.js) to swap out the images and apply CSS filters. You'll get all the code for this in a later lesson.
What our JavaScript then does is take the values generated in `zombieDetails` above, and use some browser-based JavaScript magic (we're using Vue.js) to swap out the images and apply CSS filters. You'll get all the code for this in a later lesson.

# Give it a try!

Expand Down
2 changes: 1 addition & 1 deletion de/2/10-interactingcontracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The function looks like this:
}


The function looks a bit different than we're used to. You can see it returns... a bunch of different values. If you're coming from a programming language like Javascript, this is different — in Solidity you can return more than one value from a function.
The function looks a bit different than we're used to. You can see it returns... a bunch of different values. If you're coming from a programming language like JavaScript, this is different — in Solidity you can return more than one value from a function.

Now that we know what this function looks like, we can use it to create an interface:

Expand Down
2 changes: 1 addition & 1 deletion de/2/13-kittygenes.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ We'll say that cat-zombies have `99` as their last two digits of DNA (since cats

## If statements

If statements in Solidity look just like javascript:
If statements in Solidity look just like JavaScript:

function eatBLT(string sandwich) public {
// Remember with strings, we have to compare their keccak256 hashes
Expand Down
4 changes: 2 additions & 2 deletions de/2/14-wrappingitup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ That's it, you've completed lesson 2!

You can check out the demo to the right to see it in action. Go ahead, I know you can't wait until the bottom of this page

## Javascript implementation
## JavaScript implementation

Once we're ready to deploy this contract to Ethereum we'll just compile and deploy `ZombieFeeding` — since this contract is our final contract that inherits from `ZombieFactory`, and has access to all the public methods in both contracts.

Let's look at an example of interacting with our deployed contract using Javascript and web3.js:
Let's look at an example of interacting with our deployed contract using JavaScript and web3.js:

var abi = /* abi generated by the compiler */
var ZombieFeedingContract = web3.eth.contract(abi)
Expand Down
2 changes: 1 addition & 1 deletion de/2/3-msgsender.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Let's update our `_createZombie` method from lesson 1 to assign ownership of the

2. Second, let's increase `ownerZombieCount` for this `msg.sender`.

In Solidity, you can increase a `uint` with `++`, just like in javascript:
In Solidity, you can increase a `uint` with `++`, just like in JavaScript:

uint number = 0;
number++;
Expand Down
2 changes: 1 addition & 1 deletion de/4/payable.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ What happens here is that someone would call the function from web3.js (from the
OnlineStore.buySomething({from: web3.eth.defaultAccount, value: web3.utils.toWei(0.001)})


Notice the `value` field, where the javascript function call specifies how much `ether` to send (0.001). If you think of the transaction like an envelope, and the parameters you send to the function call are the contents of the letter you put inside, then adding a `value` is like putting cash inside the envelope — the letter and the money get delivered together to the recipient.
Notice the `value` field, where the JavaScript function call specifies how much `ether` to send (0.001). If you think of the transaction like an envelope, and the parameters you send to the function call are the contents of the letter you put inside, then adding a `value` is like putting cash inside the envelope — the letter and the money get delivered together to the recipient.

> Note: If a function is not marked `payable` and you try to send Ether to it as above, the function will reject your transaction.
Expand Down
2 changes: 1 addition & 1 deletion de/6/00-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ In this lesson, we're going to look at how to interact with your smart contract

Note that app front-ends are written in **JavaScript**, not Solidity. But since the focus of this course is on Ethereum / Solidity, we're assuming you are already comfortable building websites with HTML, JavaScript (including ES6 <a href="https://developers.google.com/web/fundamentals/primers/promises" target=_blank>promises</a>), and JQuery, and will not be spending time covering the basics of those languages.

If you are not already comfortable building websites with HTML / Javascript, you should complete a basic tutorial elsewhere before starting this lesson.
If you are not already comfortable building websites with HTML / JavaScript, you should complete a basic tutorial elsewhere before starting this lesson.
2 changes: 1 addition & 1 deletion de/6/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,6 @@ You can use this boilerplate code in all the apps you create in order to require
## Put it to the Test

We've created some empty script tags before the closing `</body>` tag in our HTML file. We can write our javascript code for this lesson here.
We've created some empty script tags before the closing `</body>` tag in our HTML file. We can write our JavaScript code for this lesson here.

1. Go ahead and copy/paste the template code from above for detecting Metamask. It's the block that starts with `window.addEventListener`.
2 changes: 1 addition & 1 deletion de/6/04.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ Note that this is **asynchronous**, like an API call to an external server. So W

Once the promise resolves (which means we got an answer back from the web3 provider), our example code continues with the `then` statement, which logs `result` to the console.

`result` will be a javascript object that looks like this:
`result` will be a JavaScript object that looks like this:

{
"name": "H4XF13LD MORRIS'S COOLER OLDER BROTHER",
Expand Down
2 changes: 1 addition & 1 deletion en/1/00-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ So you think you have what it takes to become a **CryptoZombie**, huh?
This course will teach you how to **build a game on Ethereum**.

It's designed for beginners to Solidity, but it assumes you have some experience
programming in another language (e.g. Javascript).
programming in another language (e.g. JavaScript).
2 changes: 1 addition & 1 deletion en/1/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function add(uint _x, uint _y) public returns (uint) {
}
```

Your app front-end could then listen for the event. A javascript implementation would look something like:
Your app front-end could then listen for the event. A JavaScript implementation would look something like:

```
YourContract.IntegersAdded(function(error, result) {
Expand Down
6 changes: 3 additions & 3 deletions en/1/web3js.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ material:
answer: 1
---

Our Solidity contract is complete! Now we need to write a javascript frontend that interacts with the contract.
Our Solidity contract is complete! Now we need to write a JavaScript frontend that interacts with the contract.

Ethereum has a Javascript library called **_Web3.js_**.
Ethereum has a JavaScript library called **_Web3.js_**.

In a later lesson, we'll go over in depth how to deploy a contract and set up Web3.js. But for now let's just look at some sample code for how Web3.js would interact with our deployed contract.

Expand Down Expand Up @@ -68,7 +68,7 @@ function generateZombie(id, name, dna) {
}
```

What our javascript then does is take the values generated in `zombieDetails` above, and use some browser-based javascript magic (we're using Vue.js) to swap out the images and apply CSS filters. You'll get all the code for this in a later lesson.
What our JavaScript then does is take the values generated in `zombieDetails` above, and use some browser-based JavaScript magic (we're using Vue.js) to swap out the images and apply CSS filters. You'll get all the code for this in a later lesson.

# Give it a try!

Expand Down
2 changes: 1 addition & 1 deletion en/2/10-interactingcontracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function getKitty(uint256 _id) external view returns (
}
```

The function looks a bit different than we're used to. You can see it returns... a bunch of different values. If you're coming from a programming language like Javascript, this is different — in Solidity you can return more than one value from a function.
The function looks a bit different than we're used to. You can see it returns... a bunch of different values. If you're coming from a programming language like JavaScript, this is different — in Solidity you can return more than one value from a function.

Now that we know what this function looks like, we can use it to create an interface:

Expand Down
2 changes: 1 addition & 1 deletion en/2/13-kittygenes.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ We'll say that cat-zombies have `99` as their last two digits of DNA (since cats

## If statements

If statements in Solidity look just like javascript:
If statements in Solidity look just like JavaScript:

```
function eatBLT(string memory sandwich) public {
Expand Down
4 changes: 2 additions & 2 deletions en/2/14-wrappingitup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ That's it, you've completed lesson 2!

You can check out the demo to the right to see it in action. Go ahead, I know you can't wait until the bottom of this page 😉. Click a kitty to attack, and see the new kitty zombie you get!

## Javascript implementation
## JavaScript implementation

Once we're ready to deploy this contract to Ethereum we'll just compile and deploy `ZombieFeeding` — since this contract is our final contract that inherits from `ZombieFactory`, and has access to all the public methods in both contracts.

Let's look at an example of interacting with our deployed contract using Javascript and web3.js:
Let's look at an example of interacting with our deployed contract using JavaScript and web3.js:

```
var abi = /* abi generated by the compiler */
Expand Down
2 changes: 1 addition & 1 deletion en/2/3-msgsender.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Let's update our `_createZombie` method from lesson 1 to assign ownership of the

2. Second, let's increase `ownerZombieCount` for this `msg.sender`.

In Solidity, you can increase a `uint` with `++`, just like in javascript:
In Solidity, you can increase a `uint` with `++`, just like in JavaScript:

```
uint number = 0;
Expand Down
2 changes: 1 addition & 1 deletion en/4/payable.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ What happens here is that someone would call the function from web3.js (from the
OnlineStore.buySomething({from: web3.eth.defaultAccount, value: web3.utils.toWei(0.001)})
```

Notice the `value` field, where the javascript function call specifies how much `ether` to send (0.001). If you think of the transaction like an envelope, and the parameters you send to the function call are the contents of the letter you put inside, then adding a `value` is like putting cash inside the envelope — the letter and the money get delivered together to the recipient.
Notice the `value` field, where the JavaScript function call specifies how much `ether` to send (0.001). If you think of the transaction like an envelope, and the parameters you send to the function call are the contents of the letter you put inside, then adding a `value` is like putting cash inside the envelope — the letter and the money get delivered together to the recipient.

>Note: If a function is not marked `payable` and you try to send Ether to it as above, the function will reject your transaction.
Expand Down
2 changes: 1 addition & 1 deletion en/6/00-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ In this lesson, we're going to look at how to interact with your smart contract

Note that app front-ends are written in **JavaScript**, not Solidity. But since the focus of this course is on Ethereum / Solidity, we're assuming you are already comfortable building websites with HTML, JavaScript (including ES6 <a href="https://developers.google.com/web/fundamentals/primers/promises" target=_blank>promises</a>), and JQuery, and will not be spending time covering the basics of those languages.

If you are not already comfortable building websites with HTML / Javascript, you should complete a basic tutorial elsewhere before starting this lesson.
If you are not already comfortable building websites with HTML / JavaScript, you should complete a basic tutorial elsewhere before starting this lesson.
2 changes: 1 addition & 1 deletion en/6/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,6 @@ You can use this boilerplate code in all the apps you create in order to require
## Put it to the Test

We've created some empty script tags before the closing `</body>` tag in our HTML file. We can write our javascript code for this lesson here.
We've created some empty script tags before the closing `</body>` tag in our HTML file. We can write our JavaScript code for this lesson here.

1. Go ahead and copy/paste the template code from above for detecting Metamask. It's the block that starts with `window.addEventListener`.
2 changes: 1 addition & 1 deletion en/6/04.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ Note that this is **asynchronous**, like an API call to an external server. So W

Once the promise resolves (which means we got an answer back from the web3 provider), our example code continues with the `then` statement, which logs `result` to the console.

`result` will be a javascript object that looks like this:
`result` will be a JavaScript object that looks like this:

```
{
Expand Down
2 changes: 1 addition & 1 deletion en/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"course" : {
"solidity" : {
"title": "Solidity Path: Beginner to Intermediate Smart Contracts",
"summary": "<p>So you think you have what it takes to become a <strong>CryptoZombie</strong>, huh?</p> <p>This course will teach you how to <strong>build a game on Ethereum</strong>.</p> It's designed for beginners to Solidity, but it assumes you have some experience programming in another language (e.g. Javascript)."
"summary": "<p>So you think you have what it takes to become a <strong>CryptoZombie</strong>, huh?</p> <p>This course will teach you how to <strong>build a game on Ethereum</strong>.</p> It's designed for beginners to Solidity, but it assumes you have some experience programming in another language (e.g. JavaScript)."
},
"hand_on_path": {
"title": "Hands-on Path: Make and Deploy a Custom Game Mode",
Expand Down
2 changes: 1 addition & 1 deletion es/1/00-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ roadmap: roadmap.jpg
Este curso te enseñará cómo **crear un juego en Ethereum**.

Está diseñado para principiantes en Solidity, pero asume que tienes alguna experiencia
programando en algún otro lenguage (por ejemplo Javascript).
programando en algún otro lenguage (por ejemplo JavaScript).
6 changes: 3 additions & 3 deletions es/1/web3js.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ material:
answer: 1
---

¡Nuestro contrato en Solidity está completo! Ahora tenemos que escribir una aplicación de usuario en javascript para interactuar con él.
¡Nuestro contrato en Solidity está completo! Ahora tenemos que escribir una aplicación de usuario en JavaScript para interactuar con él.

Ethereum tiene una librería Javascript llamada **_Web3.js_**.
Ethereum tiene una librería JavaScript llamada **_Web3.js_**.

En lecciones posteriores veremos en detalle como publicar un contrato y como configurar Web3.js. Pero por ahora vamos solamente a ver un ejemplo de código de cómo Web3.js interactuaría con nuestro contrato.

Expand Down Expand Up @@ -67,7 +67,7 @@ function generateZombie(id, name, dna) {
return zombieDetails
}
```
Lo que nuestro código javascript hace es recoger los valores generados en `zombieDetails` más arriba, y usar un poco de magia Javascript en el navegador (usamos Vue.js) para intercambiar las imágenes y aplicar filtros CSS. Te daremos todo el código para hacer esto en una lección posterior.
Lo que nuestro código JavaScript hace es recoger los valores generados en `zombieDetails` más arriba, y usar un poco de magia JavaScript en el navegador (usamos Vue.js) para intercambiar las imágenes y aplicar filtros CSS. Te daremos todo el código para hacer esto en una lección posterior.

# ¡Pruébalo!

Expand Down
2 changes: 1 addition & 1 deletion es/2/10-interactingcontracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function getKitty(uint256 _id) external view returns (
}
```

La función parece algo diferente de las que hemos usado. Puedes ver que devuelve... una lista de diferentes valores. Si vienes de un lenguaje de programación como Javascript, esto es diferente - en Solidity puedes devolver más de un valor en una función.
La función parece algo diferente de las que hemos usado. Puedes ver que devuelve... una lista de diferentes valores. Si vienes de un lenguaje de programación como JavaScript, esto es diferente - en Solidity puedes devolver más de un valor en una función.

Ahora que sabemos como es esta función, podemos usarla para crear una interfaz:

Expand Down
2 changes: 1 addition & 1 deletion es/2/13-kittygenes.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Diremos que los gato-zombis tienen `99` en los últimos dos dígitos de su ADN (

## Sentencias if

Una sentencia if en Solidity es igual que en javascript:
Una sentencia if en Solidity es igual que en JavaScript:

```
function eatBLT(string sandwich) public {
Expand Down
4 changes: 2 additions & 2 deletions es/2/14-wrappingitup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ material:

Ahora puede probar nuestra demostración a la derecha para verlo en acción. Sigue adelante, sé que no puedes esperar hasta el final de esta página 😉. Clica en un gato para atacar, y ¡mira que nuevo gato zombi consigues!

## Implementación javascript
## Implementación JavaScript

Una vez estemos listos para implementar este contrato en Ethereum solamente tendremos que compilar e implementar `ZombieFeeding` — debido a que este contrato es nuestro contrato final que hereda de `ZombieFactory`, y tiene acceso a todos los métodos públicos de ambos contratos.

Vamos a ver un ejemplo de cómo interactuaría nuestro contrato implementado usando Javascript y web3.js:
Vamos a ver un ejemplo de cómo interactuaría nuestro contrato implementado usando JavaScript y web3.js:

```
var abi = /* abi generado por el compilador */
Expand Down
2 changes: 1 addition & 1 deletion es/2/3-msgsender.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Vamos a actualizar nuestro método `_createZombie` de la Lección para asignarle

2. Segundo, incrementamos `ownerZombieCount` para este `msg.sender`.

En Solidity, puedes incrementar un `uint` con `++`, así como en javascript:
En Solidity, puedes incrementar un `uint` con `++`, así como en JavaScript:

```
uint number = 0;
Expand Down
2 changes: 1 addition & 1 deletion es/4/payable.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Lo que sucede aquí es que alguien llamaría a la función desde web3.js (desde
OnlineStore.buySomething({from: web3.eth.defaultAccount, value: web3.utils.toWei(0.001)})
```

Nótese el campo `value`, donde la llamada de función javascript especifíca cuánto de `ether` enviar (0.001). Si piensas en la transacción como un sobre, y los parámetros que usted envía a la llamada de función son los contenidos de la carta que coloca adentro, entonces añadir un `value` es como poner dinero en efectivo dentro del sobre — la carta y el dinero son entregados juntos al receptor.
Nótese el campo `value`, donde la llamada de función JavaScript especifíca cuánto de `ether` enviar (0.001). Si piensas en la transacción como un sobre, y los parámetros que usted envía a la llamada de función son los contenidos de la carta que coloca adentro, entonces añadir un `value` es como poner dinero en efectivo dentro del sobre — la carta y el dinero son entregados juntos al receptor.

>Nota: Si una función no es marcada como `payable` y usted intenta enviar Ether a esta, como se hizo anteriormente, la función rechazará su transacción.
Expand Down
Loading

0 comments on commit 85052ac

Please sign in to comment.