Skip to content
Snippets Groups Projects
Commit 09d085e0 authored by Olivier ABDELNOUR's avatar Olivier ABDELNOUR
Browse files

wip

parent 9dcf00a0
Branches
No related tags found
No related merge requests found
...@@ -75,9 +75,10 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h ...@@ -75,9 +75,10 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h
> **danger** Regular functions declared with the **`function` keyword have `this` inherited from the caller**, whereas **arrow functions have a `this` inherited from the declaring scope**. > **danger** Regular functions declared with the **`function` keyword have `this` inherited from the caller**, whereas **arrow functions have a `this` inherited from the declaring scope**.
<details><summary> Show the game.js file </summary> <details><summary> Show the game.js file </summary>
=== "game.js - with function" === "game.js - with function"
```javascript ``` js
export class GameComponent { export class GameComponent {
goToScore() { goToScore() {
// ... // ...
...@@ -100,7 +101,7 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h ...@@ -100,7 +101,7 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h
=== "game.js - with arrow function" === "game.js - with arrow function"
```javascript ``` js
export class GameComponent { export class GameComponent {
goToScore() { goToScore() {
// ... // ...
...@@ -117,6 +118,28 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h ...@@ -117,6 +118,28 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h
} }
} }
``` ```
=== "C"
``` c
#include <stdio.h>
int main(void) {
printf("Hello world!\n");
return 0;
}
```
=== "C++"
``` c++
#include <iostream>
int main(void) {
std::cout << "Hello world!" << std::endl;
return 0;
}
```
</details> </details>
## Template literals ## Template literals
...@@ -158,3 +181,4 @@ src/app/scripts/welcome.js ...@@ -158,3 +181,4 @@ src/app/scripts/welcome.js
- [ ] I know what is the _bound this_ of a function - [ ] I know what is the _bound this_ of a function
- [ ] I know about template literals - [ ] I know about template literals
- [ ] The application runs as usual - [ ] The application runs as usual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment