javascripting
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -27,3 +27,1 @@ --- | ||
* Asegúrate de no cometer ningún tipo de error ortográfico | ||
> **¿Necesita ayuda?** Has una pregunta en: github.com/nodeschool/discussions/issues |
@@ -27,3 +27,1 @@ --- | ||
* ファイルの中身にタイプミスはありませんか? | ||
> **助けが必要ですか?** github.com/nodeschool/discussions/issues で質問してください |
@@ -27,3 +27,1 @@ --- | ||
* 문자열 자체에 오타가 없는지 확인하세요. | ||
> **도움이 필요하세요?** 여기에서 질문하세요! github.com/nodeschool/discussions/issues |
@@ -27,3 +27,1 @@ --- | ||
* Certifique-se de não ter cometido erros ortográficos. | ||
> **Precisa de ajuda?** Faça uma pergunta: github.com/nodeschool/discussions/issues |
@@ -27,3 +27,1 @@ --- | ||
* 确保你在字符串中没有笔误(可能叫键盘误更好一些) | ||
> **需要帮助?** 在这里提出你的问题:github.com/nodeschool/discussions/issues |
@@ -28,2 +28,1 @@ --- | ||
> **Need help?** Ask a question at: github.com/nodeschool/discussions/issues |
32
index.js
@@ -1,19 +0,19 @@ | ||
#!/usr/bin/env node | ||
var path = require('path'); | ||
var adventure = require('workshopper-adventure/adventure'); | ||
var jsing = adventure({ | ||
name: 'javascripting' | ||
, appDir: __dirname | ||
, languages: ['en', 'ja', 'ko', 'es', 'zh-cn', 'pt-br'] | ||
var jsing = require('workshopper-adventure')({ | ||
appDir: __dirname | ||
, languages: ['en', 'ja', 'ko', 'es', 'zh-cn', 'pt-br', 'nb-no', 'uk'] | ||
, header: require('workshopper-adventure/default/header') | ||
, footer: require('./lib/footer.js') | ||
}); | ||
var problems = require('./menu.json'); | ||
jsing.addAll(require('./menu.json').map(function (problem) { | ||
return { | ||
name: problem, | ||
fn: function () { | ||
var p = problem.toLowerCase().replace(/\s/g, '-'); | ||
var dir = require('path').join(__dirname, 'problems', p); | ||
return require(dir); | ||
} | ||
} | ||
})) | ||
problems.forEach(function (problem) { | ||
var p = problem.toLowerCase().replace(/\s/g, '-'); | ||
var dir = path.join(__dirname, 'problems', p); | ||
jsing.add(problem, function () { return require(dir); }); | ||
}); | ||
jsing.execute(process.argv.slice(2)); | ||
module.exports = jsing; |
var fs = require('fs'); | ||
var path = require('path'); | ||
var md = require('cli-md'); | ||
module.exports = function (filepath) { | ||
return md(fs.readFileSync(filepath, 'utf8')) | ||
return fs.readFileSync(filepath, 'utf8') | ||
.replace(/'/g, "'") | ||
@@ -8,0 +7,0 @@ .replace(/"/g, '"') |
@@ -12,7 +12,7 @@ var path = require('path'); | ||
exports.init = function (workshopper) { | ||
var postfix = workshopper.lang === 'en' ? '' : '_' + workshopper.lang; | ||
this.problem = getFile(path.join(dirname, 'problem' + postfix + '.md')); | ||
this.solution = getFile(path.join(dirname, 'solution' + postfix + '.md')); | ||
this.solutionPath = path.resolve(dirname, "../../solutions", problemName, "index.js"); | ||
this.troubleshootingPath = path.join(dirname, '../../i18n/troubleshooting' + postfix + '.md'); | ||
var postfix = workshopper.i18n.lang() === 'en' ? '' : '_' + workshopper.i18n.lang(); | ||
this.problem = {file: path.join(dirname, 'problem' + postfix + '.md')}; | ||
this.solution = {file: path.join(dirname, 'solution' + postfix + '.md')}; | ||
this.solutionPath = path.resolve(__dirname, '..', 'solutions', problemName, "index.js"); | ||
this.troubleshootingPath = path.join(__dirname, '..', 'i18n', 'troubleshooting' + postfix + '.md'); | ||
} | ||
@@ -41,3 +41,6 @@ | ||
exports.fail = message; | ||
exports.fail = [ | ||
{text: message, type: 'md' }, | ||
require('./lib/footer.js') | ||
] | ||
@@ -44,0 +47,0 @@ cb(false); |
{ | ||
"name": "javascripting", | ||
"description": "Learn JavaScript by adventuring around in the terminal.", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"repository": { | ||
"url": "git://github.com/sethvincent/javascripting.git" | ||
"url": "https://github.com/sethvincent/javascripting.git" | ||
}, | ||
"author": "sethvincent", | ||
"bin": { | ||
"javascripting": "index.js" | ||
"javascripting": "./bin/javascripting" | ||
}, | ||
"main": "./index.js", | ||
"preferGlobal": true, | ||
"dependencies": { | ||
"cli-md": "^0.1.0", | ||
"colors": "^1.0.3", | ||
"diff": "^1.2.1", | ||
"workshopper-adventure": "^3.4.5" | ||
"workshopper-adventure": "^4.0.4" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ACCEDIENDO A LOS VALORES DE UN ARRAY | ||
Se puede tener acceso a los elementos de un Array a través del número de índice. | ||
@@ -12,5 +8,5 @@ | ||
```js | ||
var pets = ['cat', 'dog', 'rat']; | ||
var pets = ['cat', 'dog', 'rat']; | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -27,3 +23,3 @@ | ||
```js | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -33,3 +29,3 @@ | ||
``` | ||
console.log(pets.1); | ||
console.log(pets.1); | ||
``` | ||
@@ -50,4 +46,4 @@ | ||
`javascripting verify accediendo-valores-array.js` | ||
--- | ||
```bash | ||
javascripting verify accediendo-valores-array.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 配列の値にアクセスする | ||
配列の要素には添え字を使ってアクセスできます。 | ||
@@ -49,4 +45,4 @@ | ||
`javascripting verify accessing-array-values.js` | ||
--- | ||
```bash | ||
javascripting verify accessing-array-values.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 배열 값에 접근하기 | ||
배열 요소는 인덱스 숫자로 접근 할 수 있습니다. | ||
@@ -13,5 +9,5 @@ | ||
```js | ||
var pets = ['cat', 'dog', 'rat']; | ||
var pets = ['cat', 'dog', 'rat']; | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -28,3 +24,3 @@ | ||
```js | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -34,3 +30,3 @@ | ||
``` | ||
console.log(pets.1); | ||
console.log(pets.1); | ||
``` | ||
@@ -52,4 +48,4 @@ | ||
`javascripting verify accessing-array-values.js` | ||
--- | ||
```bash | ||
javascripting verify accessing-array-values.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ACESSANDO VALORES DE UM ARRAY | ||
Podemos acessar elementos de um array através de um número que representa sua posição, conhecido como índice. | ||
@@ -13,5 +9,5 @@ | ||
```js | ||
var pets = ['cat', 'dog', 'rat']; | ||
var pets = ['cat', 'dog', 'rat']; | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -28,3 +24,3 @@ | ||
```js | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -34,3 +30,3 @@ | ||
``` | ||
console.log(pets.1); | ||
console.log(pets.1); | ||
``` | ||
@@ -52,4 +48,4 @@ | ||
`javascripting verify accessing-array-values.js` | ||
--- | ||
```bash | ||
javascripting verify accessing-array-values.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 访问数组中的值 | ||
数组中的元素可以通过一个索引值来访问。 | ||
@@ -11,7 +7,6 @@ | ||
```js | ||
var pets = ['cat', 'dog', 'rat']; | ||
var pets = ['cat', 'dog', 'rat']; | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -28,3 +23,3 @@ | ||
```js | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -34,3 +29,3 @@ | ||
``` | ||
console.log(pets.1); | ||
console.log(pets.1); | ||
``` | ||
@@ -51,4 +46,4 @@ | ||
`javascripting verify accessing-array-values.js` | ||
--- | ||
```bash | ||
javascripting verify accessing-array-values.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ACCESSING ARRAY VALUES | ||
Array elements can be accessed through index number. | ||
@@ -13,5 +9,5 @@ | ||
```js | ||
var pets = ['cat', 'dog', 'rat']; | ||
var pets = ['cat', 'dog', 'rat']; | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -28,3 +24,3 @@ | ||
```js | ||
console.log(pets[0]); | ||
console.log(pets[0]); | ||
``` | ||
@@ -34,3 +30,3 @@ | ||
``` | ||
console.log(pets.1); | ||
console.log(pets.1); | ||
``` | ||
@@ -52,4 +48,4 @@ | ||
`javascripting verify accessing-array-values.js` | ||
--- | ||
```bash | ||
javascripting verify accessing-array-values.js | ||
``` |
@@ -49,4 +49,4 @@ --- | ||
`javascripting verify filtrado-de-arrays.js` | ||
--- | ||
``` | ||
javascripting verify filtrado-de-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 配列のフィルター | ||
配列にはいろいろな操作方法があります。 | ||
@@ -48,4 +44,4 @@ | ||
`javascripting verify array-filtering.js` | ||
--- | ||
```bash | ||
javascripting verify array-filtering.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 배열 필터 | ||
배열을 조작하는 방법은 여러가지가 있습니다. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify array-filtering.js` | ||
--- | ||
```bash | ||
javascripting verify array-filtering.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FILTRANDO ARRAYS | ||
Existem muitas formas de manipular arrays. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify array-filtering.js` | ||
--- | ||
```bash | ||
javascripting verify array-filtering.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数组过滤 | ||
有许多种方法可以对数组进行操作。 | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify array-filtering.js` | ||
--- | ||
```bash | ||
javascripting verify array-filtering.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARRAY FILTERING | ||
There are many ways to manipulate arrays. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify array-filtering.js` | ||
--- | ||
```bash | ||
javascripting verify array-filtering.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARRAYS | ||
Un array es una lista ordenada de elementos. Por ejemplo: | ||
@@ -21,4 +17,5 @@ | ||
`javascripting verify arrays.js` | ||
```bash | ||
javascripting verify arrays.js | ||
``` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 配列 | ||
配列は、値のリストです。たとえば、こう... | ||
@@ -24,4 +20,5 @@ | ||
`javascripting verify arrays.js` | ||
```bash | ||
javascripting verify arrays.js | ||
``` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 배열 | ||
배열은 값의 목록입니다. 예를 들면 다음과 같습니다. | ||
@@ -21,4 +17,5 @@ | ||
`javascripting verify arrays.js` | ||
```bash | ||
javascripting verify arrays.js | ||
``` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARRAYS | ||
Um array é uma lista de valores. Aqui está um exemplo: | ||
@@ -21,4 +17,4 @@ | ||
`javascripting verify arrays.js` | ||
--- | ||
```bash | ||
javascripting verify arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数组 | ||
数组就是由一组值构成的列表。下面是一个例子: | ||
@@ -21,4 +17,4 @@ | ||
`javascripting verify arrays.js` | ||
--- | ||
```bash | ||
javascripting verify arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARRAYS | ||
An array is a list of values. Here's an example: | ||
@@ -21,4 +17,4 @@ | ||
`javascripting verify arrays.js` | ||
--- | ||
```bash | ||
javascripting verify arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FOR (BUCLES) | ||
Un bucle for es como lo siguiente: | ||
@@ -40,4 +36,4 @@ | ||
`javascripting verify for.js` | ||
--- | ||
```bash | ||
javascripting verify for.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# for ループ | ||
for ループの例です... | ||
@@ -42,4 +38,4 @@ | ||
`javascripting verify for-loop.js` | ||
--- | ||
```bash | ||
javascripting verify for-loop.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FOR 반복문 | ||
for 반복문은 이렇게 생겼습니다. | ||
@@ -41,4 +37,4 @@ | ||
`javascripting verify for-loop.js` | ||
--- | ||
```bash | ||
javascripting verify for-loop.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FAZENDO LOOP COM FOR | ||
Loops com *for* são dessa forma: | ||
@@ -41,4 +37,4 @@ | ||
`javascripting verify for-loop.js` | ||
--- | ||
```bash | ||
javascripting verify for-loop.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FOR 循环 | ||
For 循环看起来是这样的: | ||
@@ -41,4 +37,4 @@ | ||
`javascripting verify for-loop.js` | ||
--- | ||
```bash | ||
javascripting verify for-loop.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FOR LOOPS | ||
For loops look like this: | ||
@@ -41,4 +37,4 @@ | ||
`javascripting verify for-loop.js` | ||
--- | ||
```bash | ||
javascripting verify for-loop.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARGUMENTOS DE FUNCIÓN | ||
Una función puede ser declarada para recibir cualquier número de argumentos. Los argumentos pueden ser de cualquier tipo. Por ejemplo, un argumento a una función podría ser una string, un número, un array, un objeto e incluso otra función. | ||
@@ -39,4 +35,4 @@ | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 関数の引数 | ||
関数の引数はいくつでも宣言できます。引数はどんな型でも大丈夫です。文字列、数値、配列、オブジェクト、関数さえも引数になり得ます。 | ||
@@ -38,4 +34,4 @@ | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 함수 인자 | ||
함수는 몇 개의 인자도 받도록 선언할 수 있습니다. 인자는 어떤 타입도 사용 가능합니다. 인자는 문자열, 숫자, 배열, 객체이거나 심지어 다른 함수일 수도 있습니다. | ||
@@ -30,3 +26,3 @@ | ||
각 인자는 좋아하는 이름을 지으세요. | ||
인자들에는 편한 이름을 지으세요. | ||
@@ -39,4 +35,4 @@ `math` 함수는 두 번째와 세 번째 인자를 곱하고, 곱한 값에 첫 번째 인자를 더해 얻은 결과를 출력합니다. | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARGUMENTOS DE FUNÇÕES | ||
Podemos declarar uma função que recebe qualquer quantidade de argumentos. Os argumentos podem ser de qualquer tipo. Um argumento poderia ser uma string, um número, um array, um objeto e até mesmo outra função. | ||
@@ -37,4 +33,4 @@ | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 函数的参数 | ||
一个函数可以被声明为接受任意数量的参数。参数可以是任意的类型,例如字符串,数字,数组,对象,甚至另一个函数。 | ||
@@ -37,4 +33,4 @@ | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FUNCTION ARGUMENTS | ||
A function can be declared to receive any number of arguments. Arguments can be from any type. An argument could be a string, a number, an array, an object and even another function. | ||
@@ -31,3 +27,3 @@ | ||
The function `math` should multiply the second and third arguments, then add the first argument to the outcome of the multiplication and return the value obtained. | ||
Within the `math` function, return the value obtained from multiplying the second and third arguments and adding that result to the first argument. | ||
@@ -38,4 +34,4 @@ After that, inside the parentheses of `console.log()`, call the `math()` function with the number `53` as first argument, the number `61` as second and the number `67` as third argument. | ||
`javascripting verify function-arguments.js` | ||
--- | ||
```bash | ||
javascripting verify function-arguments.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FUNCIONES | ||
Una función es un bloque de código que puede recibir un input y devolver un output. | ||
@@ -41,4 +37,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 関数 | ||
関数はコードのまとまりです。入力を受け取ります。受け取った入力を処理し、結果を返します。 | ||
@@ -43,4 +39,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 함수 | ||
함수는 입력을 받는 코드의 블록입니다. 그 입력을 처리해서 출력을 만듭니다. | ||
@@ -39,4 +35,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FUNÇÕES | ||
Uma função basicamente recebe uma entrada, processa a entrada, e então produz uma saída. | ||
@@ -40,4 +36,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 函数 | ||
函数就是一大段代码,这段代码将输入处理,然后产生输出。 | ||
@@ -39,4 +35,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# FUNCTIONS | ||
A function is a block of code that takes input, processes that input, and then produces output. | ||
@@ -40,4 +36,4 @@ | ||
`javascripting verify functions.js` | ||
--- | ||
```bash | ||
javascripting verify functions.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# BLOQUE CONDICIONAL | ||
Los bloques condicionales son utilizados, partiendo de una condición booleana específica, alterar el control de flujo de un programa. | ||
@@ -34,4 +30,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# if 文 | ||
条件文を使って、次に実行する文を変更します。プログラムの流れを変更できます。条件は真理値で指定します。 | ||
@@ -34,4 +30,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# IF 구문 | ||
지정된 조건을 기반으로, 조건문은 프로그램의 흐름 제어에 사용됩니다. | ||
@@ -33,4 +29,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# CONDICIONAL COM IF | ||
Instruções condicionais são usadas para alterar o controle de fluxo de um programa, baseado em uma condição de verdadeiro ou falso. | ||
@@ -34,4 +30,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# IF 语句 | ||
条件语句基于一个特定的布尔值(即要么为真要么为假的值)来改变程序的控制流。 | ||
@@ -33,4 +29,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# IF STATEMENT | ||
Conditional statements are used to alter the control flow of a program, based on a specified boolean condition. | ||
@@ -34,4 +30,4 @@ | ||
`javascripting verify if-statement.js` | ||
--- | ||
```bash | ||
javascripting verify if-statement.js | ||
``` |
@@ -1,4 +0,1 @@ | ||
--- | ||
# INTRODUCCIÓN | ||
Para mantener el orden, procederemos a crear una carpeta para este workshop. | ||
@@ -8,10 +5,21 @@ | ||
`mkdir javascripting` | ||
```bash | ||
mkdir javascripting | ||
``` | ||
Cambia de directorio a la carpeta que acabas de crear: | ||
`cd javascripting` | ||
```bash | ||
cd javascripting | ||
``` | ||
Crea un archivo llamado `introduction.js` utilizando: | ||
`touch introduction.js`, o si utilizas Windows `type NUL > introduction.js` (`type` es parte del comando!) | ||
```bash | ||
touch introduction.js | ||
``` | ||
, o si utilizas Windows | ||
```bash | ||
type NUL > introduction.js | ||
``` | ||
(`type` es parte del comando!) | ||
@@ -26,8 +34,6 @@ Agrega el siguiente texto al archivo: | ||
`javascripting verify introduction.js` | ||
```bash | ||
javascripting verify introduction.js | ||
``` | ||
--- | ||
> **Necesitas ayuda?** Vista el README de este workshop: github.com/sethvincent/javascripting | ||
@@ -1,4 +0,1 @@ | ||
--- | ||
# INTRODUCTION | ||
このワークショップで使うディレクトリを作りましょう。 | ||
@@ -8,11 +5,18 @@ | ||
`mkdir javascripting` | ||
```bash | ||
mkdir javascripting | ||
``` | ||
`javascripting` ディレクトリに移動しましょう。 | ||
`cd javascripting` | ||
```bash | ||
cd javascripting | ||
``` | ||
次のコマンドで `introduction.js` ファイルを作成します。 | ||
`touch introduction.js` (Windowsを使っているのであれば `type NUL > introduction.js`) | ||
```bash | ||
touch introduction.js | ||
``` | ||
(Windowsを使っているのであれば `type NUL > introduction.js`) | ||
@@ -27,8 +31,5 @@ お好みのエディタでファイルを開きます。次の文を書き足しましょう。 | ||
`javascripting verify introduction.js` | ||
```bash | ||
javascripting verify introduction.js | ||
``` | ||
--- | ||
> **ヘルプが必要ですか??** このワークショップのREADMEを読んでください。 : http://github.com/ledsun/javascripting |
@@ -1,18 +0,10 @@ | ||
--- | ||
# 소개 | ||
정돈을 위해 이 워크숍을 위한 폴더를 만듭시다. | ||
이 명령어를 실행해 `javascripting`이라는 디렉터리(다른 이름이어도 됩니다)를 만드세요. | ||
`mkdir javascripting` 명령어를 실행해 `javascripting`이라는 디렉터리(다른 이름이어도 됩니다)를 만드세요. | ||
`mkdir javascripting` | ||
`cd javascripting`을 통해 `javascripting` 폴더 안으로 디렉터리를 변경하세요. | ||
`javascripting` 폴더 안으로 디렉터리를 변경하세요. | ||
`touch introduction.js`를 입력해 `introduction.js`이라는 파일을 만드세요. | ||
윈도우라면 `type NUL > introduction.js`(`type`도 명령어의 일부입니다!)로 만들 수 있습니다. | ||
`cd javascripting` | ||
`introduction.js`이라는 파일을 만드세요. | ||
`touch introduction.js` 윈도우라면 `type NUL > introduction.js`(`type`도 명령어의 일부입니다!) | ||
좋아하는 편집기에서 파일을 열고 다음 내용을 넣으세요. | ||
@@ -26,8 +18,12 @@ | ||
`javascripting verify introduction.js` | ||
```bash | ||
javascripting verify introduction.js | ||
``` | ||
--- | ||
하지만 튜토리얼 내내 편한 이름을 사용하셔도 됩니다. 모든 연습 문제에 `catsAreAwesome.js` 같은 이름을 사용하시고 싶다면, 그럴 수 있습니다. 그냥 다음 명령어를 실행해 확인하세요. | ||
```bash | ||
javascripting verify catsAreAwesome.js | ||
``` | ||
> **도움이 필요하신가요?** 이 워크숍의 README를 확인하세요. http://github.com/sethvincent/javascripting |
@@ -1,4 +0,1 @@ | ||
--- | ||
# INTRODUÇÃO | ||
Para manter uma boa organização, vamos criar uma pasta para este workshop. | ||
@@ -8,12 +5,23 @@ | ||
`mkdir javascripting` | ||
```bash | ||
mkdir javascripting | ||
``` | ||
Mude o diretório do console para a pasta que você acabou de criar: | ||
`cd javascripting` | ||
```bash | ||
cd javascripting | ||
``` | ||
Crie um arquivo chamado `introduction.js`: | ||
`touch introduction.js` ou se você estiver no Windows execute o comando: `type NUL > introduction.js` | ||
```bash | ||
touch introduction.js | ||
``` | ||
ou se você estiver no Windows execute o comando: | ||
```bash | ||
type NUL > introduction.js | ||
``` | ||
Abra o arquivo no seu editor favorito, e adicione este texto: | ||
@@ -27,9 +35,6 @@ | ||
`javascripting verify introduction.js` | ||
```bash | ||
javascripting verify introduction.js | ||
``` | ||
--- | ||
> **Precisa de ajuda?** Leia o README deste workshop: http://github.com/sethvincent/javascripting | ||
@@ -1,4 +0,1 @@ | ||
--- | ||
# 入门 | ||
为了让工作环境整洁有序,我们首先来创建一个文件夹。 | ||
@@ -8,7 +5,11 @@ | ||
`mkdir javascripting` | ||
```bash | ||
mkdir javascripting | ||
``` | ||
进入 `javascripting` 文件夹: | ||
`cd javascripting` | ||
```bash | ||
cd javascripting | ||
``` | ||
@@ -27,9 +28,4 @@ 创建一个名为 `introduction.js` 的文件: | ||
`javascripting verify introduction.js` | ||
--- | ||
> **需要帮助?** 查看本教程的 README 文件:http://github.com/sethvincent/javascripting | ||
```bash | ||
javascripting verify introduction.js | ||
``` |
@@ -1,4 +0,1 @@ | ||
--- | ||
# INTRODUCTION | ||
To keep things organized, let's create a folder for this workshop. | ||
@@ -8,12 +5,24 @@ | ||
`mkdir javascripting` | ||
```bash | ||
mkdir javascripting | ||
``` | ||
Change directory into the `javascripting` folder: | ||
`cd javascripting` | ||
```bash | ||
cd javascripting | ||
``` | ||
Create a file named `introduction.js`: | ||
`touch introduction.js` or if you're on windows, `type NUL > introduction.js` (`type` is part of the command!) | ||
```bash | ||
touch introduction.js | ||
``` | ||
or if you're on windows, | ||
```bash | ||
type NUL > introduction.js | ||
``` | ||
(`type` is part of the command!) | ||
Open the file in your favorite editor, and add this text: | ||
@@ -27,13 +36,11 @@ | ||
`javascripting verify introduction.js` | ||
```bash | ||
javascripting verify introduction.js | ||
``` | ||
By the way, throughout this tutorial, you can name give the file you work with any name you like, so if you want to use something like `catsAreAwesome.js` file for every exercise, you can do that. Just make sure to run: | ||
By the way, throughout this tutorial, you can give the file you work with any name you like, so if you want to use something like `catsAreAwesome.js` file for every exercise, you can do that. Just make sure to run: | ||
`javascripting verify catsAreAwesome.js` | ||
```bash | ||
javascripting verify catsAreAwesome.js | ||
``` | ||
--- | ||
> **Need help?** View the README for this workshop: http://github.com/sethvincent/javascripting | ||
@@ -20,3 +20,1 @@ --- | ||
Ejecuta `javascripting` en la consola para seleccionar el siguiente ejercicio. | ||
--- |
@@ -20,3 +20,1 @@ --- | ||
コンソールで `javascripting` コマンドを実行します。次の課題を選択しましょう。 | ||
--- |
@@ -20,3 +20,1 @@ --- | ||
다음 과제로 가시려면 콘솔에서 `javascripting`을 실행하세요. | ||
--- |
@@ -20,3 +20,1 @@ --- | ||
Execute `javascripting` no console para escolher o próximo desafio. | ||
--- |
@@ -20,3 +20,1 @@ --- | ||
运行 `javascripting` 并选择下一个挑战。 | ||
--- |
@@ -20,3 +20,1 @@ --- | ||
Run `javascripting` in the console to choose the next challenge. | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# RECORRIENDO ARRAYS | ||
Para este ejercicio usaremos un bucle **for** para acceder y manipular una lista de valores en un array. | ||
@@ -48,4 +44,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 配列をループする | ||
この課題では、**forループ**を使用して、配列の中の値を取得したり変更したりします。 | ||
@@ -48,4 +44,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 배열을 루프하기 | ||
이 도전 과제에서는 **for 반복문**을 사용해 배열에 있는 값의 목록에 접근하고 조작하겠습니다. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# VARRENDO ARRAYS COM LOOP | ||
Para este desafio usaremos um **loop for** para acessar e manipular uma lista de valores em um array. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 依次访问数组中的值 | ||
本次挑战中,我们将使用一个 **for 循环**来访问并操作数组中的值。 | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# LOOPING THROUGH ARRAYS | ||
For this challenge we will use a **for loop** to access and manipulate a list of values in an array. | ||
@@ -47,4 +43,4 @@ | ||
`javascripting verify looping-through-arrays.js` | ||
--- | ||
```bash | ||
javascripting verify looping-through-arrays.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# NÚMERO A STRING | ||
A veces necesitarás convertir un número a una string. | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数値を文字列に | ||
数値を文字列に変換したいことがあります。 | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 숫자에서 문자열으로 | ||
가끔 숫자를 문자열로 변경해야 할 때가 있습니다. | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# CONVERTENDO NÚMERO PARA STRING | ||
Ás vezes você precisará converter um número para uma string. | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数字转字符串 | ||
有时候我们需要把一个数字转换成字符串。 | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# NUMBER TO STRING | ||
Sometimes you will need to turn a number into a string. | ||
@@ -26,4 +22,4 @@ | ||
`javascripting verify number-to-string.js` | ||
--- | ||
```bash | ||
javascripting verify number-to-string.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# NÚMEROS | ||
Los números pueden ser enteros, cómo `3`, `5` o `3337`, o pueden ser decimales, | ||
@@ -19,3 +15,1 @@ cómo `3.14`, `1.5` o `100.7893423`. | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数値 | ||
JavaScriptの数値は `2` 、`14` 、`4353` のような整数と | ||
@@ -20,3 +16,1 @@ | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,6 +0,3 @@ | ||
--- | ||
# 숫자 | ||
숫자는 `2`, `14`, `4353` 같은 정수이거나 십진수이거나 `3.14`, `1.5`, `100.7893423` 같은 실수일 수 있습니다. | ||
문자열과 다르게 숫자는 따옴표로 감쌀 필요가 없습니다. | ||
@@ -18,3 +15,1 @@ ## 도전 과제 | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,9 +0,5 @@ | ||
--- | ||
# NÚMEROS | ||
O números podem ser inteiros como `2`, `14`, ou `4353`, ou podem ser decimais | ||
como `3.14`, `1.5`, ou `100.7893423`. | ||
## Dasafio: | ||
## Desafio: | ||
@@ -19,3 +15,1 @@ Crie um arquivo chamado `numbers.js`. | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数字 | ||
数字既可以是整数,像 `2`,`14`,或者 `4353`,也可以是小数,通常也被称为浮点数,比如 `3.14`,`1.5`,和 `100.7893423`。 | ||
@@ -18,3 +14,1 @@ | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,7 +0,4 @@ | ||
--- | ||
# NUMBERS | ||
Numbers can be integers, like `2`, `14`, or `4353`, or they can be decimals, | ||
also known as floats, like `3.14`, `1.5`, or `100.7893423`. | ||
Unlike Strings, Numbers do not need to quotes. | ||
@@ -19,3 +16,1 @@ ## The challenge: | ||
`javascripting verify numbers.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# PROPIEDADES DE OBJETOS | ||
Puedes acceder y manipular propiedades de objetos –– las **llaves** y **valores** que un objeto contiene –– utilizando una forma muy similar que con arrays. | ||
@@ -45,4 +41,4 @@ | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# オブジェクトのプロパティ | ||
オブジェクトのプロパティの値を取得したり変更したりできます。 | ||
@@ -49,4 +45,4 @@ プロパティはオブジェクトに含まれるキーと値の組み合わせです。 | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 객체 속성 | ||
배열과 매우 비슷한 방법으로 객체의 속성(객체가 가지고 있는 키와 값)에 접근하고 그를 조작할 수 있습니다. | ||
@@ -45,4 +41,4 @@ | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# PROPRIEDADES DE OBJETO | ||
Você pode acessar e manipular propriedades de objetos –– as chaves e valores de um objeto –– de uma maneira bem similar como fazemos com arrays. | ||
@@ -45,4 +41,4 @@ | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 对象的属性 | ||
你可以使用与访问和操作数组非常类似的方法来访问和操作对象的属性——属性就是对象所包含的键和值的对。 | ||
@@ -45,4 +41,4 @@ | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# OBJECT PROPERTIES | ||
You can access and manipulate object properties –– the keys and values that an object contains –– using a method very similar to arrays. | ||
@@ -45,4 +41,4 @@ | ||
`javascripting verify object-properties.js` | ||
--- | ||
```bash | ||
javascripting verify object-properties.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# OBJETOS | ||
Los objetos son en cierta forma contenedores y se los puede pensar cómo diccionarios. | ||
@@ -9,3 +5,2 @@ | ||
Por ejemplo: | ||
@@ -40,4 +35,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# オブジェクト | ||
オブジェクトは、配列に似た値のリストです。配列と違い、各要素を整数ではなくキーで識別します。 | ||
@@ -37,4 +33,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 객체 | ||
객체는 배열과 비슷한 값의 목록입니다. 배열과 다른 점은 정수 대신 키를 사용해 값을 확인하는 점입니다. | ||
@@ -13,3 +9,3 @@ | ||
salad: 'gross' | ||
} | ||
}; | ||
``` | ||
@@ -28,3 +24,3 @@ | ||
serves: 2 | ||
} | ||
}; | ||
``` | ||
@@ -36,5 +32,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# OBJETOS | ||
Um objetos é uma lista de valores similar á um array, exceto que seus valores são identificados por chaves ao invés de inteiros. | ||
@@ -34,5 +30,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 对象 | ||
对象像数组一样,也是一组值的集合,所不同是,对象里的值被关键字所标识,而非整数。 | ||
@@ -34,5 +30,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# OBJECTS | ||
Objects are lists of values similar to arrays, except values are identified by keys instead of integers. | ||
@@ -34,5 +30,4 @@ | ||
`javascripting verify objects.js` | ||
--- | ||
```bash | ||
javascripting verify objects.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# MODIFICANDO STRINGS | ||
A menudo necesitarás cambiar el contenido de una string. | ||
@@ -25,3 +21,3 @@ | ||
Define una variable llamada `pizza` que referencie esta string: `pizza is alright` | ||
Define una variable llamada `pizza` que referencie esta string: `'pizza is alright'` | ||
@@ -35,3 +31,1 @@ Utiliza el método `.replace()` para cambiar `alright` con `wonderful`. | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 文字列を変更 | ||
文字列の中身を書き換えたいことがあります。 | ||
@@ -24,3 +20,3 @@ | ||
ファイルの中で、文字列は `pizza is alright` を表す、変数 `pizza` を定義します。 | ||
ファイルの中で、文字列は `'pizza is alright'` を表す、変数 `pizza` を定義します。 | ||
@@ -34,3 +30,1 @@ `.replace()` メソッドを使って、 `alright` を `wonderful` に変更します。 | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 문자열 뒤집기 | ||
문자열의 내용을 바꿀 경우가 종종 생깁니다. | ||
@@ -23,3 +19,3 @@ | ||
`pizza is alright` 문자열을 참조하는 `pizza`라는 변수를 정의합니다. | ||
`'pizza is alright'` 문자열을 참조하는 `pizza`라는 변수를 정의합니다. | ||
@@ -33,3 +29,1 @@ `.replace()` 메소드를 사용해 `alright`을 `wonderful`로 바꿉니다. | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# MODIFICANDO STRINGS | ||
Frequentemente você precisará mudar o conteúdo de uma string. | ||
@@ -25,3 +21,3 @@ | ||
Defina uma variável chamada `pizza` que referencia esta string: `pizza is alright` | ||
Defina uma variável chamada `pizza` que referencia esta string: `'pizza is alright'` | ||
@@ -35,3 +31,1 @@ Use o método `.replace()` para modificar o `alright` para `wonderful`. | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 修改字符串 | ||
实际工作中可能经常需要修改一个字符串。 | ||
@@ -23,3 +19,3 @@ | ||
定义一个名为 `pizza` 的变量,并且让它引用字符串 `pizza is alright`。 | ||
定义一个名为 `pizza` 的变量,并且让它引用字符串 `'pizza is alright'`。 | ||
@@ -33,3 +29,1 @@ 使用 `.replace()` 方法将 `alright` 替换为 `wonderful`。 | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# REVISING STRINGS | ||
You will often need to change the contents of a string. | ||
@@ -25,3 +21,3 @@ | ||
Define a variable named `pizza` that references this string: `pizza is alright` | ||
Define a variable named `pizza` that references this string: `'pizza is alright'` | ||
@@ -35,3 +31,1 @@ Use the `.replace()` method to change `alright` to `wonderful`. | ||
`javascripting verify revising-strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# REDONDEANDO NÚMEROS | ||
Los operadores básicos son `+`, `-`, `*`, `/`, y `%`. | ||
@@ -31,4 +27,4 @@ | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数値丸め | ||
基本的な数値処理には、`+`、 `-`、 `*`、 `/`、 `%` といった、おなじみの演算子を使います。 | ||
@@ -18,3 +14,3 @@ | ||
`Math.round()` メソッドを使って数値を切り上げましょう。 | ||
`Math.round()` メソッドを使って数値を切り上げましょう。 このメソッドは引数の数値を四捨五入して、最も近いの整数を返します。 | ||
@@ -33,4 +29,4 @@ `Math.round()` メソッドの使用例です... | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 숫자 반올림 | ||
`+`, `-`, `*`, `/`, `%` 같은 익숙한 연산자를 사용해 기본적인 연산을 할 수 있습니다. | ||
@@ -17,3 +13,3 @@ | ||
`Math.round()` 메소드를 이용해 숫자를 반올림합니다. | ||
`Math.round()` 메소드를 이용해 숫자를 반올림합니다. 이 메소드는 숫자를 가까운 정수로 올리거나 내립니다. | ||
@@ -32,4 +28,4 @@ `Math.round()`을 사용하는 예입니다. | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ARREDONDANDO NÚMEROS | ||
Podemos fazer operações simples de matemática usando operadores como `+`, `-`, `*`, `/`, e `%`. | ||
@@ -31,4 +27,4 @@ | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 数字取整 | ||
我们可以对数字进行一些基本的数学运算,比如 `+`,`-`,`*`,`/`,和 `%`。 | ||
@@ -31,4 +27,4 @@ | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ROUNDING NUMBERS | ||
We can do basic math using familiar operators like `+`, `-`, `*`, `/`, and `%`. | ||
@@ -17,3 +13,3 @@ | ||
We will use the `Math.round()` method to round the number up. | ||
We will use the `Math.round()` method to round the number up. This method rounds either up or down to the nearest integer. | ||
@@ -32,4 +28,4 @@ An example of using `Math.round()`: | ||
`javascripting verify rounding-numbers.js` | ||
--- | ||
```bash | ||
javascripting verify rounding-numbers.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# SCOPE ( AMBITO ) | ||
El `scope` o ámbito es el conjunto de variables, objetos y funciones a las que tienes acceso. | ||
@@ -69,2 +65,2 @@ | ||
``` | ||
--- | ||
@@ -1,5 +0,1 @@ | ||
--- | ||
# スコープ | ||
「スコープ」は参照できる変数・オブジェクト・関数の集合です。 | ||
@@ -76,2 +72,1 @@ | ||
``` | ||
--- |
@@ -1,6 +0,2 @@ | ||
--- | ||
# 스코프 | ||
`스코프`는 접근할 수 있는 변수, 객체, 함수의 집합입니다. | ||
@@ -69,2 +65,7 @@ | ||
``` | ||
--- | ||
이 명령어를 실행해 프로그램이 올바른지 확인하세요. | ||
```bash | ||
javascripting verify scope.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# ESCOPO | ||
`Escopo` é o conjunto de variáveis, objetos, e funções dos quais temos acesso. | ||
@@ -73,4 +69,4 @@ | ||
`javascripting verify scope.js` | ||
--- | ||
```bash | ||
javascripting verify scope.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 作用域 | ||
`作用域` 就是你能访问到的变量、对象以及函数的集合。 | ||
@@ -68,2 +64,1 @@ | ||
``` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# SCOPE | ||
`Scope` is the set of variables, objects, and functions you have access to. | ||
@@ -64,3 +60,3 @@ | ||
Use your knowledge of the variables' `scope` and place the following code inside one of the functions in 'scope.js' | ||
Use your knowledge of the variables' `scope` and place the following code inside one of the functions in `scope.js` | ||
so the output is `a: 1, b: 8,c: 6` | ||
@@ -73,4 +69,4 @@ ```js | ||
`javascripting verify scope.js` | ||
--- | ||
```bash | ||
javascripting verify scope.js | ||
``` |
@@ -1,5 +0,1 @@ | ||
--- | ||
# LONGITUD DE STRINGS | ||
Muy seguido necesitarás saber cuantos caracteres hay en una string. | ||
@@ -14,3 +10,3 @@ | ||
#NOTA | ||
## NOTA | ||
@@ -35,3 +31,1 @@ Asegúrate de que hay un punto entre `example` y `length` | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 文字列の長さ | ||
ある文字列の文字数を知りたいことがあります。 | ||
@@ -31,3 +27,1 @@ | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 문자열 길이 | ||
문자열에 얼마나 많은 문자가 있는지 알아야 할 때가 자주 있을 겁니다. | ||
@@ -14,3 +10,3 @@ | ||
# 주의 | ||
## 주의 | ||
@@ -21,3 +17,2 @@ `example`과 `length` 사이에 마침표가 있는 것을 확인하세요. | ||
## 도전 과제 | ||
@@ -36,3 +31,1 @@ | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# TAMANHO DA STRING | ||
Você irá frequentemente precisar saber quantos caracteres estão em uma string. | ||
@@ -14,3 +10,3 @@ | ||
# OBSERVAÇÕES | ||
## OBSERVAÇÕES | ||
@@ -35,3 +31,1 @@ Tenha certeza de que existe um ponto entre `example` e `length`. | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 字符串长度 | ||
在程序中我们经常需要知道一个字符串中到底包含了多少字符。 | ||
@@ -14,3 +10,3 @@ | ||
# 注 | ||
## 注 | ||
@@ -35,3 +31,1 @@ 不要忘记 `example` 和 `length` 之间的英文句号。 | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# STRING LENGTH | ||
You will often need to know how many characters are in a string. | ||
@@ -14,3 +10,3 @@ | ||
#NOTE | ||
## NOTE | ||
@@ -35,3 +31,1 @@ Make sure there is a period between `example` and `length`. | ||
`javascripting verify string-length.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# STRINGS | ||
Una **string** representa una cadena de caracteres y se puede definir con comillas dobles o simples. | ||
@@ -33,3 +29,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 文字列 | ||
**文字列**は引用符でくくった値です。 | ||
@@ -32,3 +28,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 문자열 | ||
**문자열**은 따옴표로 감싸진 값입니다. | ||
@@ -33,3 +29,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# STRINGS | ||
Uma **string** pode ser qualquer valor cercado de aspas. | ||
@@ -33,3 +29,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 字符串 | ||
**字符串**就是被引号包裹起来的任意的值。 | ||
@@ -33,3 +29,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# STRINGS | ||
A **string** is any value surrounded by quotes. | ||
@@ -14,4 +10,5 @@ | ||
``` | ||
#NOTE | ||
## NOTE | ||
Try to stay consistent. In this workshop we'll only use single quotes. | ||
@@ -34,3 +31,1 @@ | ||
`javascripting verify strings.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# VARIABLES | ||
Una variable es una referencia a un valor. Define una variable usando la palabra reservada `var`. | ||
@@ -35,2 +31,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 変数 | ||
変数は特定の値を示す名前です。 `var` を使って変数を宣言します。 `var` につづけて変数の名前を書きます。 | ||
@@ -38,3 +34,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 변수 | ||
변수는 특정 값을 참조하는 이름입니다. 변수는 `var`와 변수의 이름으로 선언합니다. | ||
@@ -39,2 +35,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# VARIÁVEIS | ||
Uma variável é o nome que pode fazer referência a um valor específico. Variáveis são declaradas usando a palavra `var` seguida do nome da variável. | ||
@@ -40,2 +36,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# 变量 | ||
变量就是一个可以引用具体值的名字。变量通过使用 `var` 及紧随其后的变量名来声明。 | ||
@@ -39,2 +35,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
@@ -1,5 +0,1 @@ | ||
--- | ||
# VARIABLES | ||
A variable is a name that can reference a specific value. Variables are declared using `var` followed by the variable's name. | ||
@@ -38,2 +34,1 @@ | ||
`javascripting verify variables.js` | ||
--- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1064339
3
431
364
+ Added@hapi/address@2.1.4(transitive)
+ Added@hapi/bourne@1.3.2(transitive)
+ Added@hapi/hoek@8.5.1(transitive)
+ Added@hapi/joi@15.1.1(transitive)
+ Added@hapi/topo@3.1.6(transitive)
+ Addedansi-regex@3.0.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedansicolors@0.3.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcapture-stack-trace@1.0.2(transitive)
+ Addedcardinal@1.0.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolors@1.0.3(transitive)
+ Addedcolors-tmpl@1.0.0(transitive)
+ Addedcombined-stream@1.0.5(transitive)
+ Addedcombined-stream-wait-for-it@1.1.0(transitive)
+ Addedcommandico@2.0.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcreate-error-class@3.0.2(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedduplexer2@0.1.4(transitive)
+ Addedentities@1.1.2(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedesprima@3.0.0(transitive)
+ Addedexplicit@0.1.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgot@5.7.1(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedi18n-core@2.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-redirect@1.0.0(transitive)
+ Addedis-retry-allowed@1.2.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedlatest-version@2.0.0(transitive)
+ Addedlowercase-keys@1.0.1(transitive)
+ Addedmarked@0.3.12(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmsee@0.3.5(transitive)
+ Addednode-status-codes@1.0.0(transitive)
+ Addednopt@4.0.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedpackage-json@2.4.0(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprepend-http@1.0.4(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedread-all-stream@3.1.0(transitive)
+ Addedredeyed@1.0.1(transitive)
+ Addedregistry-auth-token@3.4.0(transitive)
+ Addedregistry-url@3.1.0(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsplit@1.0.1(transitive)
+ Addedstring-to-stream@1.1.1(transitive)
+ Addedstrip-ansi@4.0.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtable-header@0.2.2(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedtimed-out@3.1.3(transitive)
+ Addedunzip-response@1.0.2(transitive)
+ Addedurl-parse-lax@1.0.0(transitive)
+ Addedworkshopper-adventure@4.7.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedcli-md@^0.1.0
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.0.01.1.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcardinal@0.4.40.5.0(transitive)
- Removedchalk@0.4.00.5.1(transitive)
- Removedcharm@0.1.2(transitive)
- Removedcli-md@0.1.0(transitive)
- Removedcolors@0.6.2(transitive)
- Removedcolors-tmpl@0.1.1(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedesprima@1.0.4(transitive)
- Removedesprima-fb@12001.1.0-dev-harmony-fb(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removedi18n-core@1.3.3(transitive)
- Removedmap-async@0.1.1(transitive)
- Removedmarked@0.3.19(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedmsee@0.1.2(transitive)
- Removednopt@2.1.2(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedredeyed@0.4.40.5.0(transitive)
- Removedstrip-ansi@0.1.10.3.0(transitive)
- Removedsupports-color@0.2.0(transitive)
- Removedterminal-menu@2.1.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedvisualwidth@0.0.1(transitive)
- Removedworkshopper-adventure@3.5.2(transitive)
- Removedxtend@2.1.23.0.0(transitive)
Updatedworkshopper-adventure@^4.0.4