caractere #1

Merged
Max merged 2 commits from caractere into master 2022-11-09 18:05:03 +00:00
1 changed files with 10 additions and 10 deletions

View File

@ -356,17 +356,17 @@
for (let i = 0; i < symbb_2.length; i++) {
const s = symbb_2[i]
const n = chiffre_num_2[i + 1]
// 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 !