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

wip

parent 9dcf00a0
No related branches found
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
> **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>
=== "game.js - with function"
```javascript
``` js
export class GameComponent {
goToScore() {
// ...
......@@ -100,7 +101,7 @@ Waiting a certain amount of time can be easily done using the [`setTimeout()`](h
=== "game.js - with arrow function"
```javascript
``` js
export class GameComponent {
goToScore() {
// ...
......@@ -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>
## Template literals
......@@ -158,3 +181,4 @@ src/app/scripts/welcome.js
- [ ] I know what is the _bound this_ of a function
- [ ] I know about template literals
- [ ] 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