Compare commits

..

No commits in common. "06aa0e6813dded3a936d77dc980085d81221be32" and "30f70662569611c7d77a1576929046b76bded137" have entirely different histories.

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, n)
// previous = previous + n
// } else if (s === "-") {
// console.log(previous, s, n)
// previous = previous - n
// }
if (s === "+") {
console.log(previous, s)
previous = previous + n
} else if (s === "-") {
console.log(previous, s, n)
previous = previous - n
}
// console.log(previous)
}
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 !