Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
teaching:progappchim:testjs [2017/03/06 00:09] – créée villersd | teaching:progappchim:testjs [2017/05/04 16:13] (Version actuelle) – villersd | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Test JS ====== | + | ====== Test Javascript + dokuwiki + DataCamp-light |
< | < | ||
https:// | https:// | ||
</ | </ | ||
- | test | ||
< | < | ||
<div class=" | <div class=" | ||
<div class=" | <div class=" | ||
- | < | + | < |
</ | </ | ||
Ligne 15: | Ligne 15: | ||
<code data-type=" | <code data-type=" | ||
import numpy as np | import numpy as np | ||
- | import matplotlib.pyplot as plt | ||
- | |||
x = np.arange(0, | x = np.arange(0, | ||
y = np.sin(x) | y = np.sin(x) | ||
- | | + | |
- | | + | |
</ | </ | ||
<code data-type=" | <code data-type=" | ||
Ligne 27: | Ligne 25: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | <div data-datacamp-exercise data-lang=" | ||
+ | <code data-type=" | ||
+ | # This will get executed each time the exercise gets initialized | ||
+ | b = 6 | ||
+ | </ | ||
+ | <code data-type=" | ||
+ | # Create a variable a, equal to 5 | ||
+ | |||
+ | |||
+ | # Print out a | ||
+ | |||
+ | |||
+ | </ | ||
+ | <code data-type=" | ||
+ | # Create a variable a, equal to 5 | ||
+ | a <- 5 | ||
+ | |||
+ | # Print out a | ||
+ | print(a) | ||
+ | </ | ||
+ | <code data-type=" | ||
+ | test_object(" | ||
+ | test_function(" | ||
+ | success_msg(" | ||
+ | </ | ||
+ | <div data-type=" | ||
+ | </ | ||
</ | </ |