<IPython.core.display.Javascript object>
<IPython.core.display.Javascript object>
%%js
// Define variable
let count = 10;
console.log("Initial Count:", count); // Output: 10
// Increment using ++
count++;
console.log("After Increment (++) :", count); // Output: 11
// Decrement using --
count--;
console.log("After Decrement (--):", count); // Output: 10
// Increment using +=
count += 5; // Increment by 5
console.log("After Increment (+= 5):", count); // Output: 15
// Decrement using -=
count -= 3; // Decrement by 3
console.log("After Decrement (-= 3):", count); // Output: 12
// Increment using ++ again
count++;
console.log("After Increment (++) again:", count); // Output: 13
// Decrement using -- again
count--;
console.log("After Decrement (-- again):", count); // Output: 12
// Final increments and decrements
count += 2; // Increment by 2
console.log("After Increment (+= 2):", count); // Output: 14
count -= 1; // Decrement by 1
console.log("After Decrement (-= 1):", count); // Output: 13
<IPython.core.display.Javascript object>