test push

This commit is contained in:
max 2022-11-09 18:25:03 +01:00
parent 30f7066256
commit 66d5373736
1 changed files with 12 additions and 12 deletions

View File

@ -354,19 +354,19 @@
const n = chiffre_num_2[i + 1]
for (let i = 0; i < symbb_2.length; i++) {
const s = symbb_2[i]
const n = chiffre_num_2[i + 1]
// for (let i = 0; i < symbb_2.length; i++) {
// const s = symbb_2[i]
// const n = chiffre_num_2[i + 1]
if (s === "+") {
console.log(previous, s)
previous = previous + n
} else if (s === "-") {
console.log(previous, s, n)
previous = previous - n
}
}
console.log(previous)
// if (s === "+") {
// console.log(previous, s, n)
// previous = previous + n
// } else if (s === "-") {
// console.log(previous, s, n)
// previous = previous - n
// }
// }
// console.log(previous)
// info : les mult &div sont fonctionnels, les prios aussi. Mais la liste ne
// prend pas en compte la derniere valeur de la liste !