sceneObject = {
const scene = new THREE.Scene(); // Create scene
scene.background = new THREE.Color(‘black’); // Sets scene background color
return scene;
}
The code for the sceneObject cell that you see in the notebook eventually gets compiled to
function _sceneObject(THREE)
{
const scene = new THREE.Scene(); // Create scene
scene.background = new THREE.Color('black'); // Sets scene background color
return scene;
}
Observable’s Runtime takes care of resolving dependencies between cells and running them again when values change. This behavior is referred to as reactive dataflow.