chore(i18n,curriculum): updates (#41689)
Apply typo fixes and formatting changes based on feedback from internationalisation process.
This commit is contained in:
committed by
GitHub
parent
48e19ccd7b
commit
e1ea77412b
@ -8,11 +8,7 @@ dashedName: learn-about-functional-programming
|
||||
|
||||
# --description--
|
||||
|
||||
Functional programming is a style of programming where solutions are simple, isolated functions, without any side effects outside of the function scope.
|
||||
|
||||
```js
|
||||
INPUT -> PROCESS -> OUTPUT
|
||||
```
|
||||
Functional programming is a style of programming where solutions are simple, isolated functions, without any side effects outside of the function scope: `INPUT -> PROCESS -> OUTPUT`
|
||||
|
||||
Functional programming is about:
|
||||
|
||||
|
@ -19,7 +19,7 @@ const io = require('socket.io')(http);
|
||||
|
||||
Now that the *http* server is mounted on the *express app*, you need to listen from the *http* server. Change the line with `app.listen` to `http.listen`.
|
||||
|
||||
The first thing needing to be handled is listening for a new connection from the client. The <dfn>on</dfn> keyword does just that- listen for a specific event. It requires 2 arguments: a string containing the title of the event thats emitted, and a function with which the data is passed though. In the case of our connection listener, we use *socket* to define the data in the second argument. A socket is an individual client who is connected.
|
||||
The first thing needing to be handled is listening for a new connection from the client. The <dfn>on</dfn> keyword does just that- listen for a specific event. It requires 2 arguments: a string containing the title of the event that's emitted, and a function with which the data is passed though. In the case of our connection listener, we use *socket* to define the data in the second argument. A socket is an individual client who is connected.
|
||||
|
||||
To listen for connections to your server, add the following within your database connection:
|
||||
|
||||
|
@ -31,7 +31,7 @@ Then, once a response is received from the AJAX request, a few assertions are ma
|
||||
1. The status of the response is `200`
|
||||
2. The text within the `<span id='name'></span>` element matches `'Marco'`
|
||||
3. The text within the `<span id='surname'></span>` element matches `'Polo'`
|
||||
4. The there is `1` `<span id='dates'></span>` element.
|
||||
4. There is `1` `<span id='dates'></span>` element.
|
||||
|
||||
Finally, the `done` callback is invoked, which is needed due to the asynchronous test.
|
||||
|
||||
|
Reference in New Issue
Block a user