test push
This commit is contained in:
parent
30f7066256
commit
66d5373736
24
calcu.html
24
calcu.html
|
@ -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 !
|
||||
|
|
Loading…
Reference in New Issue