Skip to content

Commit 8ef5170

Browse files
Update concept exercises to pass the linter (#999)
1 parent 38f5df6 commit 8ef5170

File tree

53 files changed

+188
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+188
-180
lines changed

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"semi": true,
33
"singleQuote": true,
4-
"endOfLine": "lf"
4+
"endOfLine": "lf",
5+
"arrowParens": "always"
56
}

concepts/array-analysis/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
In JavaScript, an array is a list-like structure with no fixed length which can hold any type of primitives or objects, or even mixed types. The array elements can be accessed by their index. Arrays are also given a bunch of built-in methods. Some of these built-in methods can analyse the contents of the array. Many of the built-in functions that analyse the contents of an array, take a [`predicate`][predicate_in_programming] as argument.
64

75
The built-in functions are meant to be used _instead of a `for` loop_ or the built-in `Array#forEach()`:

concepts/array-destructuring/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
Javascript's array destructuring syntax is a concise way to extract values from an array and assign them to distinct variables.
64

75
In this example, each value in the `numberOfMoons` array is assigned to its corresponding planet:

concepts/arrays/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
In Javascript, an array is a list-like structure with no fixed length which can hold any type of primitives or ojects, even mixed types. The array elements can be accesed by their index.
64

75
Example of an array declaration and accessing an element by index:

concepts/basics/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
JavaScript is a dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
64

75
There are a few primary ways to assign values to names in JavaScript - using variables or constants. On Exercism, variables are always written in [camelCase][wiki-camel-case]; constants are written in [SCREAMING_SNAKE_CASE][wiki-snake-case].

concepts/booleans/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
A boolean represents one of two values: `true` or `false`. Logical operators (`!`, `&&`, `||`) are typically used with boolean values and they return a boolean value.

concepts/closures/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
**Closures** are a programming pattern in JavaScript which allows variables from an outer [lexical scope][wiki-lexical-scope] to be used inside of a nested block of code. JavaScript supports closures transparently, and they are often used without knowing what they are.
64

75
```javascript

concepts/numbers/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
There are two different types of numbers in JavaScript:
64

75
- `number`: a numeric data type in the double-precision 64-bit floating point

concepts/promises/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
53
The `Promise` object represents the eventual completion (or failure) of an
64
asynchronous operation, and its resulting value.
75

concepts/recursion/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Introduction
22

3-
TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
3+
TODO: add introduction for recursion concept

0 commit comments

Comments
 (0)