JavaScript Essentials

Click the card to flip 👆
1 / 97
Terms in this set (97)
A scripting programming language of the web, invented for the web, run client side by web browsers, that adds interactivity to a web page. JavaScript is a language that works with and manipulates web pages. It only works within web browser applications that have a JavaScript engines. Code is sent to the client and is interpreted there. Does not run server side.
- Create an active user interface.
- Tailor the user experience(more personal), different content based upon the day, time, browser etc.
- Extend the user experience such as dynamic pages, user interface elements that react to user input.
- Validate user input on forms such as pre processing forms.
- Create custom HTML pages on the fly
- Control Web browsers
A language / interface that allows programs and scripts to dynamically access and update the content, structure and style of documents. The DOM is a family-tree structure of sorts. HTML like other markup languages uses this model to describe the relationships of things on a page. When we refer to these relationships, we use the same terminology that we use to refer to family relationships - parents, children, etc. The document is the webpage. The object that handles the contents of a webpage is the document object.Objects are for example (window, location, history, navigator, document). Model is a way of thinking about things in the browser. A model is a representation of something and in this case the document.
Its a container that we create, name, and give a value. Values subject to change. Giving a value to a variable is called assignment. var thePage; Variable names cant start with number, dashes or spaces. Must be written as one word and no spaces. You can declare a variable and set it at the same time. var myCat ="Pixel"; Any variable can contain most anything (numbers, strings,booleans)