Instead, Javascript code modifies and generates HTML/CSS, which changes the look and behaviour of a website as the user interacts with it: Javascript programming is largely event-driven, like Scratch, which can make it difficult to follow.