Mathematical Operators
Lesson for mathematical-operators
Mathematical Operators
Learning from AstroPlatformer
Code Runner Challenge
mathematical-operators
View IPYNB Source
%%js
// CODE_RUNNER: mathematical-operators
const baseW = 650;
const screenW = 800;
const scale = screenW / baseW;
console.log("Scale:", scale.toFixed(2));
const gravity = 0.52;
let vy = 0;
vy += gravity;
console.log("Velocity:", vy);
Lines: 1
Characters: 0
Output
Click "Run" in code control panel to see output ...