HTML provides basic content and structure to webpages and CSS takes care of all the layout and styling. JavaScript then is repsonsible for webpages interactivity and controlling the moving parts using a selection of 'control flow statements'.
Control flow statements are sets of rules that tell the browser how to respond when different conditional statements are met. An example is the 'if else' statement which works by telling the computer 'if this is true, do this' otherwise ('else'), 'do this'.
Javascript stores multiple values of information in 'Objects' and 'Arrays'. Arrays store all the information in a single variable, whereas objects can use multiple variables.
A function is a subprogram designed to perform a particular task. values can be passed into functions and used within the function. They can be can be repurposed or re-used in other codebases or contexts.