Feat(NSI): ajoute le premier bilan sur javascript
This commit is contained in:
3
1NSI/08_Interaction_web/script/1B_boucles.js
Normal file
3
1NSI/08_Interaction_web/script/1B_boucles.js
Normal file
@@ -0,0 +1,3 @@
|
||||
for (var i = 0; i < 3; i++){
|
||||
console.log(i)
|
||||
}
|
2
1NSI/08_Interaction_web/script/1B_boucles.py
Normal file
2
1NSI/08_Interaction_web/script/1B_boucles.py
Normal file
@@ -0,0 +1,2 @@
|
||||
for i in range(3):
|
||||
print(i)
|
7
1NSI/08_Interaction_web/script/1B_conditions.js
Normal file
7
1NSI/08_Interaction_web/script/1B_conditions.js
Normal file
@@ -0,0 +1,7 @@
|
||||
let age = 12;
|
||||
let permi = True;
|
||||
if (age > 18) && (permi === True) {
|
||||
console.log("Tu peux conduire")
|
||||
} else {
|
||||
console.log("Tu ne peux pas conduire")
|
||||
}
|
6
1NSI/08_Interaction_web/script/1B_conditions.py
Normal file
6
1NSI/08_Interaction_web/script/1B_conditions.py
Normal file
@@ -0,0 +1,6 @@
|
||||
age = 12
|
||||
permi = True
|
||||
if age > 18 and permi == True:
|
||||
print("Tu peux conduire")
|
||||
else:
|
||||
print("Tu ne peux pas conduire")
|
3
1NSI/08_Interaction_web/script/1B_fonctions.js
Normal file
3
1NSI/08_Interaction_web/script/1B_fonctions.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function carre(n) {
|
||||
return n**2
|
||||
}
|
2
1NSI/08_Interaction_web/script/1B_fonctions.py
Normal file
2
1NSI/08_Interaction_web/script/1B_fonctions.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def carre(n):
|
||||
return n**2
|
5
1NSI/08_Interaction_web/script/1B_type.js
Normal file
5
1NSI/08_Interaction_web/script/1B_type.js
Normal file
@@ -0,0 +1,5 @@
|
||||
let entier = 1;
|
||||
let string = "coucou";
|
||||
let virgule = 2.2;
|
||||
let bouleen = true;
|
||||
let liste = [1, 2, 3];
|
5
1NSI/08_Interaction_web/script/1B_type.py
Normal file
5
1NSI/08_Interaction_web/script/1B_type.py
Normal file
@@ -0,0 +1,5 @@
|
||||
entier = 1
|
||||
string = "coucou"
|
||||
virgule = 2.2
|
||||
bouleen = True
|
||||
liste = [1, 2, 3]
|
3
1NSI/08_Interaction_web/script/1B_var.js
Normal file
3
1NSI/08_Interaction_web/script/1B_var.js
Normal file
@@ -0,0 +1,3 @@
|
||||
let a = 2;
|
||||
let mot = "coucou";
|
||||
const constante = "coucou"
|
2
1NSI/08_Interaction_web/script/1B_var.py
Normal file
2
1NSI/08_Interaction_web/script/1B_var.py
Normal file
@@ -0,0 +1,2 @@
|
||||
a = 2
|
||||
b = "coucou"
|
Reference in New Issue
Block a user