-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript and JQuery interactive front-end web development #28
Comments
Solution to add
|
Link to introduction on angular js |
Computers create models of the world using data.The models use objects to represent physical things. |
How HTML,CSS & JAVASCRIPT FIT TOGETHERHTML -- THE CONTENT LAYER: |
JS only: Anonymous Function & Function ExpressionsIf you put a function where the interpreter would expect to see and expression, then it is treated as an expression, and it is known as a function expression.
IMMEDIATELY INVOKED FUNCTION EXPRESSION iifeThese functions are not given a name
The () after } tell the interpreter to call the function immediately;
3. In event handlers and listeners to perform a task when an event occurs.IIFEs are commonly used as a wrapper around a set of code. Any variables declared within that anonymous function are effectively protected from variables in other scripts that might have the same name. This is due to a concept called scope, which is a very popular technique with jquery. |
WAYs to Create ObjectsVariable ScopeA variable actually references a value that is stored in memory. What is an Object?In an object, variables become known as properties. Access an object and its methods and properties.
OR
CREATING the OBJECT, then ADD PROPERTIES AND METHODS1. LITERAL NOTATIONvar hotel = {} 2 Object Constructor Notation
CREATING AN OBJECT WITH PROPERTIES & METHODS1.Literal Notation
2. Creating many objects : Constructor Notationtemplate
Add and DeleteAfter creating the object,
|
THISWhen a function is created at top level of a script, it is in the global scope.
All global variables also become properties of the window object, so when a function is in the global context, you can access global variables using the window object.
|
Solution to remotely import a csv file and parse the file to get the field name using javascript
The text was updated successfully, but these errors were encountered: