diff --git a/resources/docs/docs/chapters/tp/arrow-functions.md b/resources/docs/docs/chapters/tp/arrow-functions.md index 1f234b1d41fdaf29655ef82e365ff68a43b995b3..289d224ef1a6e68865435a3ac513009c287f811f 100644 --- a/resources/docs/docs/chapters/tp/arrow-functions.md +++ b/resources/docs/docs/chapters/tp/arrow-functions.md @@ -118,30 +118,19 @@ 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> +:::tabbed +@A + ```js + console.log("coucou"); + ``` +@B +```js + console.log("coucou"); + ``` +::: + ## Template literals Concatenating strings is not something we enjoy in any language. Fortunately, _ES6_ comes with [**template literals**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) as an alternative: