QP School
JavaScript - Subtractions with expressions - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: JavaScript Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=6)
+--- Thread: JavaScript - Subtractions with expressions (/showthread.php?tid=4116)



JavaScript - Subtractions with expressions - Qomplainerz - 04-04-2023

Code:
let a = 1;
let b = (10 - 1) - a;

document.getElementById("demo").innerHTML = b;