NOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function"
|
|
- Nicholas Hunter
- 5 years ago
- Views:
Transcription
1 Functions
2 Basic Functions NOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function" From Also "Method Method and function are not precise synonyms. Methods operate on data contained in a class; functions receive and return data. 2
3 Basic_JS_Function.html The UI (User interface) is pretty straight-forward: when you click on the first button two alert boxes pop up. Clicking the second button pops just one alert. The HTML is pretty much just boilerplate code 3
4 1 Basic functions: Basic_JS_Function.html: Named functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } $(document).ready( function () { // note that this is an anonymous function $("#anon").click( function () { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! Arrow #1: This will define a new function, with the name MyNamedFunction function MyNamedFunction() { = function = This is how we tell JavaScript that we want to create a new function MyNamedFunction = We chose this name for our function () = These are required { } = These mark the start and end of the function 4
5 2 Basic functions: Basic_JS_Function.html: Named functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } $(document).ready( function () { // note that this is an anonymous function $("#anon").click( function () { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! #2: The body of the function goes here. When the function is called the body is executed, and then execution returns to whichever line called the function. If there's more than 1 line then we go from top to bottom In this case it's just a single line: alert 5
6 1 3 Basic functions: Basic_JS_Function.html: Named functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } $(document).ready( function () { // note that this is an anonymous function $("#anon").click( function () { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! #3: This is where we call the function The program should jump from #3 to the definition ( #1 ), execute the body of the function from top to bottom, and then return here to #3 MyNamedFunction(); = We list the name of the function (MyNamedFunction) and then MUST include the parentheses (() ). The semi-colon (; ) is optional but normally it is listed. 6
7 1 3 4 Basic functions: Basic_JS_Function.html: Named functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } $(document).ready( function () { // note that this is an anonymous function $("#anon").click( function () { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! #4: This is where we tell jquery to use the function as the event handler Note that we are NOT calling it here we're just telling jquery to use it $("#normal").click( ); = We set up the jquery event handler for the button being clicked, like you've seen before MyNamedFunction = name of the function to use. NOTE: We do NOT put parentheses here. We put parentheses next to the function when defining it ( #1) or calling it (#3) 7
8 Basic functions: Basic_JS_Function.html: ANONYMOUS functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } 5 $(document).ready( function () { // note that this is an anonymous function $("#anon").click( function() { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! #5: This is one example of an anonymous function. Note that it's basically the same as the named function except with the name of the function left out (because there is no name of the function). The key part is: function() { } = Where is the body of the function 8
9 5 Basic functions: Basic_JS_Function.html: ANONYMOUS functions function MyNamedFunction() { alert("you clicked on a button, and this\nnamed\nfunction was run to handle the event!"); } $(document).ready( function() { // note that this is an anonymous function $("#anon").click( function() { // this is another anonymous function alert("you clicked on a button, and this\nanonymous\nfunction was run to handle the event!"); MyNamedFunction(); 5 $("#normal").click( MyNamedFunction ); // Note that there are NO ()'s at the end of the name!!! 6 6 #6: This is another example of an anonymous function. 9
10 Work on Exercise #1 for this part of this lecture 10
11 Functions: Local vs. Global Variables Let's look at Local_Vs_Global_Vars.html 11
12 1 2 4 <script type="text/javascript"> // Stuff left out to make this all fit on the slide w = 1; var x = 1; function Vars(){ var y = 1; } if (x == 1) { z = 1; // global on purpose // z is create here, but is ACTUALLY GLOBAL!!! alert("creating z"); } alert("the current value of w is: " + w + "\nthe current value of x is: " + x + "\nthe current value of y is: " + y + "\nthe current value of z is: " + z); w = w + 1; x = x + 1; y += 1; // same as "y = y + 1"; alert("after:\nthe current value of w is: " + w + "\nthe current value of x is: " + x + "\nthe current value of y is: " + y + "\nthe current value of z is: " + z); z++; // increases z by one; z-- decreases z by one 3 Local_Vs_Global_Vars.html 1. w and x are globals because they're inside the <script> element but OUTSIDE any functions 2. Y is local because it is INSIDE a function Note that we can access global variables (like x) inside the function 3. We just start using the 'z' variable without using the keyword var first. This will create 'z' as a global variable. If we put the "use strict" at the top of the script then the browser would flag this as an error 4. Note that we change both the w and x global variables and the y local variable. When we click the button again you'll see that the globals have kept their value from last time, while the local variable gets reset (really, it gets re-created from scratch). 12
13 Functions: Parameters and Return Values 13
14 Params_Return_Values.html The page uses a straightforward AddTwoNumbers function which takes two numbers, adds them together, and returns the result to the event handler The function provides no error handling, etc, whatsoever. 14
15 Params_Return_Values.html: Parameters and return values The HTML is pretty straightforward We'll first look at the event handler then look at the new function 15
16 1 2 Params_Return_Values.html: Parameters and return values $(document).ready( function() { $("#functiondemo").click( function() { var smaller = parsefloat( $("#num1").val() ); var larger = parsefloat( $("#num2").val() ); #1: Notice that we're setting up anonymous functions to react to the document being ready, and to handle the button click #2: $("#num1").val() = We're going to get whatever the user typed into the textbox parsefloat() = then convert that to a number. var smaller = = then assign that to a newly created variable 16
17 3 4 Params_Return_Values.html: Parameters and return values var result; if( isnan(smaller) isnan(larger) ) { result = "Error! Either " + smaller + " or " + larger + " is not a number (or both aren't!)"; } else { // result = smaller + larger; result = AddTwoNumbers( smaller, larger ); } #3: If the user didn't give us valid input then provide an error message: var result; = Create a new variable named result isnan(smaller) isnan(larger) = check if either one (or both) aren't numbers if( ) { result = "Error! Either " + smaller + " or " + larger + " is not a number (or both aren't!)"; } = If either isn't a number then build up that error message to use as our result #4: Otherwise call the function AddTwoNumbers( ) = Call the function smaller, larger = send smaller and larger into the function, so that the function can use it result = = Whatever the function returns, assign that to the result variable 17
18 5 6 Params_Return_Values.html: Parameters and return values var output = ""; output += "Output starts here: <br/>"; output += result + "<br/>"; output += "That's all, folks!"; $("#output").html( output ); #5: Use the 'accumulator' pattern to build up the output string #6: Display the output string on the web page Next, let's look at the function itself 18
19 7 8 Params_Return_Values.html: Parameters and return values function AddTwoNumbers( numa, numb) { // Note that because this "result" is local to this function // it is a DIFFERENT variable that the "result" used in the // "click" function, below // alert( numb ); var result = numa + numb; 9 } return result; // could be done more compactly as: // return numa + numb; #7: This is mostly the same as the prior 'named function' example. What's new is that this one has parameters function AddTwoNumbers( numa, numb) { = Whatever's listed first on the calling side is refered to as numa here, whatever's listed second is listed at numb #8: Add the two numbers together, and store them into a local variable named result Note that this is completely separate from the variable named "result" in the event handler #9: This tells JS which value to return from the function 19
20 Functions: Using the accumulator pattern Let's look at Functions_Accumulator.html 21
21 Accumulator Pattern 22
22 How to accumulate a complete string of output $("#accumulatorexample").click( function (){ // string starts out empty var outputstring = ""; var input = $("#name").val(); // Add the start & end tags for "bold" element outputstring += "Your name: <b>" + input + "</b><br/>\n"; input = $("#flavor").val(); outputstring += "Favorite flavor:<i>" + input + "</i><br/>"; // for debugging (troubleshooting) purposes: alert(outputstring); $("#output").html( outputstring ); This will get the user's input for both their name and their favorite ice cream flavor, and then display those results on the page 23
23 How to accumulate a complete string of output $("#accumulatorexample").click( function (){ // string starts out empty 1) var outputstring = ""; Value of outputstring 1 "" 2) var input = $("#name").val(); // Add the start & end tags for "bold" element 3) outputstring += "Your name: <b>" + input + "</b><br/>\n"; 4) input = $("#flavor").val(); 5) outputstring += "Favorite flavor:<i>" + input + "</i><br/>"; // for debugging (troubleshooting) purposes: 6) alert(outputstring); 7) $("#output").html( outputstring ); Step #1 Create a new string variable, and make sure that it starts out empty var outputstring = ""; 24
24 How to accumulate a complete string of output $("#accumulatorexample").click( function (){ // string starts out empty 1) var outputstring = ""; 2) var input = $("#name").val(); // Add the start & end tags for "bold" element 3) outputstring += "Your name: <b>" + input + "</b><br/>\n"; Accumulate the user s input (and some formatting): var input = $("#name").val(); = Get the user's input Value of outputstring 1 "" 2 "" 3 "Your name: <b>mike</b><br/>\n" (I'm going to assume that Mike was typed into the text box) outputstring += "Your name: <b>" + input + "</b><br/>\n"; = glue the next blob of text onto the ouputstring variable. Make sure to use the += operator X += 2 is the same as X = x
25 How to accumulate a complete string of output $("#accumulatorexample").click( function (){ // string starts out empty 1) var outputstring = ""; 2) var input = $("#name").val(); // Add the start & end tags for "bold" element Value of outputstring 3 "Your name: <b>mike</b><br/>\n" 4 "Your name: <b>mike</b><br/>\n" 3) outputstring += "Your name: <b>" + input + "</b><br/>\n"; (I'm going to assume that Mint was typed into the text box) 4) input = $("#flavor").val(); 5) outputstring += "Favorite flavor:<i>" + input + "</i><br/>"; 5 "Your name: <b>mike</b><br/>\nfavorite flavor:<i>mint</i><br/>" Again accumulate the user s input (and some formatting): input = $("#flavor").val(); = Get the user's input outputstring += "Favorite flavor:<i>" + input + "</i><br/>"; = glue the next blob of text onto the ouputstring variable. 26
26 How to accumulate a complete string of output $("#accumulatorexample").click( function (){ // string starts out empty var outputstring = ""; var input = $("#name").val(); // Add the start & end tags for "bold" element outputstring += "Your name: <b>" + input + "</b><br/>\n"; 7 input = $("#flavor").val(); 5) outputstring += "Favorite flavor:<i>" + input + "</i><br/>"; // for debugging (troubleshooting) purposes: 6) alert(outputstring); 7) $("#output").html( outputstring ); Value of outputstring Last Steps alert(outputstring); = display the text in an alert, so that we can see exactly what the string looks like 27 $("#output").html( outputstring ); = Display on page 5 6 "Your name: <b>mike</b><br/>\nfavorite flavor:<i>mint</i><br/>" "Your name: <b>mike</b><br/>\nfavorite flavor:<i>mint</i><br/>" "Your name: <b>mike</b><br/>\nfavorite flavor:<i>mint</i><br/>"
27 Work on Exercise #3 for this part of this lecture 28
28 Functions: Using Functions In The Branching Adventure First we'll look at one version of this, then you'll modify a slightly different one Chances are good that we won t make it this far in the lecture 29
29 Work on Exercise #4, 5 for this part of this lecture 30
Why Use A JavaScript Library?
Using JQuery 4 Why Use A JavaScript Library? Okay, first things first. Writing JavaScript applications from scratch can be difficult, time-consuming, frustrating, and a real pain in the, ahem, britches.
More informationc122mar413.notebook March 06, 2013
These are the programs I am going to cover today. 1 2 Javascript is embedded in HTML. The document.write() will write the literal Hello World! to the web page document. Then the alert() puts out a pop
More informationClient Side JavaScript and AJAX
Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is
More informationjquery Tutorial for Beginners: Nothing But the Goods
jquery Tutorial for Beginners: Nothing But the Goods Not too long ago I wrote an article for Six Revisions called Getting Started with jquery that covered some important things (concept-wise) that beginning
More informationSlide 1 CS 170 Java Programming 1
CS 170 Java Programming 1 Objects and Methods Performing Actions and Using Object Methods Slide 1 CS 170 Java Programming 1 Objects and Methods Duration: 00:01:14 Hi Folks. This is the CS 170, Java Programming
More informationTHE PRAGMATIC INTRO TO REACT. Clayton Anderson thebhwgroup.com WEB AND MOBILE APP DEVELOPMENT AUSTIN, TX
THE PRAGMATIC INTRO TO REACT Clayton Anderson thebhwgroup.com WEB AND MOBILE APP DEVELOPMENT AUSTIN, TX REACT "A JavaScript library for building user interfaces" But first... HOW WE GOT HERE OR: A BRIEF
More informationChrome if I want to. What that should do, is have my specifications run against four different instances of Chrome, in parallel.
Hi. I'm Prateek Baheti. I'm a developer at ThoughtWorks. I'm currently the tech lead on Mingle, which is a project management tool that ThoughtWorks builds. I work in Balor, which is where India's best
More informationPROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between
MITOCW Lecture 10A [MUSIC PLAYING] PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between all these high-level languages like Lisp and the query
More informationITEC136 - Lab 2 Population
ITEC136 - Lab 2 Population Purpose To assess your ability to apply the knowledge and skills developed up though week 7. Emphasis will be placed on the following learning outcomes: 1. Decompose a problem
More informationBEGINNER PHP Table of Contents
Table of Contents 4 5 6 7 8 9 0 Introduction Getting Setup Your first PHP webpage Working with text Talking to the user Comparison & If statements If & Else Cleaning up the game Remembering values Finishing
More informationCMPT 100 : INTRODUCTION TO
CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #5 : JAVASCRIPT 2 GUESSING GAME 1 By Wendy Sharpe BEFORE WE GET STARTED... If you have not been to the first tutorial introduction JavaScript then you must
More informationSlide 1 CS 170 Java Programming 1 The Switch Duration: 00:00:46 Advance mode: Auto
CS 170 Java Programming 1 The Switch Slide 1 CS 170 Java Programming 1 The Switch Duration: 00:00:46 Menu-Style Code With ladder-style if-else else-if, you might sometimes find yourself writing menu-style
More informationInstructor: Craig Duckett. Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables
Instructor: Craig Duckett Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables 1 Assignment 1 is due LECTURE 5, Tuesday, April 10 th, 2018 in StudentTracker by MIDNIGHT MID-TERM
More informationThe Stack, Free Store, and Global Namespace
Pointers This tutorial is my attempt at clarifying pointers for anyone still confused about them. Pointers are notoriously hard to grasp, so I thought I'd take a shot at explaining them. The more information
More informationMITOCW watch?v=se4p7ivcune
MITOCW watch?v=se4p7ivcune The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To
More informationLesson 10: Exercise: Tip Calculator as a Universal App
Lesson 10: Exercise: Tip Calculator as a Universal App In this lesson we're going to take the work that we did in the previous lesson and translate it into a Universal App, which will allow us to distribute
More informationintrojs.notebook March 02, 2014
1 document.write() uses the write method to write on the document. It writes the literal Hello World! which is enclosed in quotes since it is a literal and then enclosed in the () of the write method.
More informationFormal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5
Formal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5 [talking head] This lecture we study theory design and implementation. Programmers have two roles to play here. In one role, they
More informationBy the end of this section of the practical, the students should be able to:
By the end of this section of the practical, the students should be able to: Learn about the Document Object Model and the Document Object Model hierarchy Create and use the properties, methods and event
More informationGetting started with jquery MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University
Getting started with jquery MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University Exam 2 Date: 11/06/18 four weeks from now! JavaScript, jquery 1 hour 20 minutes Use class
More informationMultiple Variable Drag and Drop Demonstration (v1) Steve Gannon, Principal Consultant GanTek Multimedia
Multiple Variable Drag and Drop Demonstration (v1) Steve Gannon, Principal Consultant GanTek Multimedia steve@gantekmultimedia.com Back Story An associate of mine, Marc Lee (a Flash coder and fellow Articulate
More informationIn our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.
Guide to and Hi everybody! In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. This guide focuses on two of those symbols: and. These symbols represent concepts
More informationMITOCW watch?v=9h6muyzjms0
MITOCW watch?v=9h6muyzjms0 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To
More informationSlide 1 CS 170 Java Programming 1 Testing Karel
CS 170 Java Programming 1 Testing Karel Introducing Unit Tests to Karel's World Slide 1 CS 170 Java Programming 1 Testing Karel Hi Everybody. This is the CS 170, Java Programming 1 lecture, Testing Karel.
More informationJava Programming Constructs Java Programming 2 Lesson 1
Java Programming Constructs Java Programming 2 Lesson 1 Course Objectives Welcome to OST's Java 2 course! In this course, you'll learn more in-depth concepts and syntax of the Java Programming language.
More informationLesson 3 Transcript: Part 1 of 2 - Tools & Scripting
Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting Slide 1: Cover Welcome to lesson 3 of the db2 on Campus lecture series. Today we're going to talk about tools and scripting, and this is part 1 of 2
More informationJQuery and Javascript
JQuery and Javascript Javascript - a programming language to perform calculations/ manipulate HTML and CSS/ make a web page interactive JQuery - a javascript framework to help manipulate HTML and CSS JQuery
More informationCMPT 100 : INTRODUCTION TO
CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #7 : JAVASCRIPT AND FORM TUTORIAL - CANDY STORE 2 1 By Wendy Sharpe BEFORE WE GET STARTED... Log onto the lab computer (in Windows) Create a folder for this
More informationLesson 7: If Statement and Comparison Operators
JavaScript 101 7-1 Lesson 7: If Statement and Comparison Operators OBJECTIVES: In this lesson you will learn about Branching or conditional satements How to use the comparison operators: ==,!=, < ,
More informationContents Release Notes System Requirements Using Jive for Office
Jive for Office TOC 2 Contents Release Notes...3 System Requirements... 4 Using Jive for Office... 5 What is Jive for Office?...5 Working with Shared Office Documents... 5 Get set up...6 Get connected
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationFormal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5
Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 [talking head] Formal Methods of Software Engineering means the use of mathematics as an aid to writing programs. Before we can
More informationThat is, we branch to JUMP_HERE, do whatever we need to do, and then branch to JUMP_BACK, which is where we started.
CIT 593 Intro to Computer Systems Lecture #11 (10/11/12) Previously we saw the JMP and BR instructions. Both are one-way jumps : there is no way back to the code from where you jumped, so you just go in
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationExercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object
CS1046 Lab 5 Timing: This lab should take you approximately 2 hours. Objectives: By the end of this lab you should be able to: Recognize a Boolean variable and identify the two values it can take Calculate
More informationUsing Visual Studio.NET: IntelliSense and Debugging
DRAFT Simon St.Laurent 3/1/2005 2 Using Visual Studio.NET: IntelliSense and Debugging Since you're going to be stuck using Visual Studio.NET anyway, at least for this edition of the.net Compact Framework,
More informationLesson 1: Writing Your First JavaScript
JavaScript 101 1-1 Lesson 1: Writing Your First JavaScript OBJECTIVES: In this lesson you will be taught how to Use the tag Insert JavaScript code in a Web page Hide your JavaScript
More informationMITOCW watch?v=flgjisf3l78
MITOCW watch?v=flgjisf3l78 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high-quality educational resources for free. To
More informationMITOCW watch?v=rvrkt-jxvko
MITOCW watch?v=rvrkt-jxvko The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To
More informationData Feeds Traffic Setup Instructions
Data Feeds Traffic Setup Instructions In this document we ll first cover data feeds and traffic, then we ll cover actual setup. Data feeds are simple to find and simple to setup. They are also often less
More information<script> function yourfirstfunc() { alert("hello World!") } </script>
JavaScript: Lesson 1 Terms: HTML: a mark-up language used for web pages (no power) CSS: a system for adding style to web pages css allows developers to choose how to style the html elements in a web page
More informationPart 1 Simple Arithmetic
California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Activity B Variables, Assignments, and More Computers
More informationFMSel Reference. Fan Mission Selector and Manager for Dark Engine based games. Overview GETTING STARTED MAIN WINDOW TAGS. Rev 7
FMSel Reference Fan Mission Selector and Manager for Dark Engine based games Overview GETTING STARTED MAIN WINDOW TAGS Rev 7 GETTING STARTED To get the game to run FMSel when it starts, you have to edit
More informationAn attribute used in HTML that is used for web browsers screen reading devices to indicate the presence and description of an image Module 4
HTML Basics Key Terms Term Definition Introduced In A tag used in HTML that stands for Anchor and is used for all types of hyperlinks Module 3 A tag used in HTML to indicate a single line break
More informationCOMP2100/2500 Lecture 17: Shell Programming II
[ANU] [DCS] [COMP2100/2500] [Description] [Schedule] [Lectures] [Labs] [Homework] [Assignments] [COMP2500] [Assessment] [PSP] [Java] [Reading] [Help] COMP2100/2500 Lecture 17: Shell Programming II Summary
More informationArticulate Engage 2013 Tutorial
How to Access Engage 1. By Launching Engage Directly o You can open Engage directly from the desktop by clicking on the green Engage Icon, which is shown in the top right corner of this manual. 2. By Launching
More informationCOMP519 Practical 5 JavaScript (1)
COMP519 Practical 5 JavaScript (1) Introduction This worksheet contains exercises that are intended to familiarise you with JavaScript Programming. While you work through the tasks below compare your results
More informationExercise 1: Basic HTML and JavaScript
Exercise 1: Basic HTML and JavaScript Question 1: Table Create HTML markup that produces the table as shown in Figure 1. Figure 1 Question 2: Spacing Spacing can be added using CellSpacing and CellPadding
More informationSection 1. How to use Brackets to develop JavaScript applications
Section 1 How to use Brackets to develop JavaScript applications This document is a free download from Murach books. It is especially designed for people who are using Murach s JavaScript and jquery, because
More informationORB Education Quality Teaching Resources
JavaScript is one of the programming languages that make things happen in a web page. It is a fantastic way for students to get to grips with some of the basics of programming, whilst opening the door
More informationMITOCW ocw f99-lec07_300k
MITOCW ocw-18.06-f99-lec07_300k OK, here's linear algebra lecture seven. I've been talking about vector spaces and specially the null space of a matrix and the column space of a matrix. What's in those
More informationMITOCW ocw f99-lec12_300k
MITOCW ocw-18.06-f99-lec12_300k This is lecture twelve. OK. We've reached twelve lectures. And this one is more than the others about applications of linear algebra. And I'll confess. When I'm giving you
More informationCGS 3066: Spring 2015 JavaScript Reference
CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within
More informationJavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C.
Like PHP, JavaScript is a modern programming language that is derived from the syntax at C. It has been around just about as long as PHP, also having been invented in 1995. JavaScript, HTML, and CSS make
More informationMITOCW MIT6_172_F10_lec18_300k-mp4
MITOCW MIT6_172_F10_lec18_300k-mp4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for
More informationMITOCW watch?v=hverxup4cfg
MITOCW watch?v=hverxup4cfg PROFESSOR: We've briefly looked at graph isomorphism in the context of digraphs. And it comes up in even more fundamental way really for simple graphs where the definition is
More information"a computer programming language commonly used to create interactive effects within web browsers." If actors and lines are the content/html......
JAVASCRIPT. #5 5.1 Intro 3 "a computer programming language commonly used to create interactive effects within web browsers." If actors and lines are the content/html...... and the director and set are
More informationCircuitPython Made Easy on Circuit Playground Express
CircuitPython Made Easy on Circuit Playground Express Created by Kattni Rembor Last updated on 2018-12-10 10:21:42 PM UTC Guide Contents Guide Contents Circuit Playground Express Library First Things First
More informationWeb Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 14 Test Bank
Multiple Choice. Choose the best answer. 1. JavaScript can be described as: a. an object-oriented scripting language b. an easy form of Java c. a language created by Microsoft 2. Select the true statement
More informationfunction < name > ( < parameter list > ) { < statements >
Readings and References Functions INFO/CSE 100, Autumn 2004 Fluency in Information Technology http://www.cs.washington.edu/100 Reading» Fluency with Information Technology Chapter 20, Abstraction and Functions
More informationa Very Short Introduction to AngularJS
a Very Short Introduction to AngularJS Lecture 11 CGS 3066 Fall 2016 November 8, 2016 Frameworks Advanced JavaScript programming (especially the complex handling of browser differences), can often be very
More informationCS103 Spring 2018 Mathematical Vocabulary
CS103 Spring 2018 Mathematical Vocabulary You keep using that word. I do not think it means what you think it means. - Inigo Montoya, from The Princess Bride Consider the humble while loop in most programming
More informationHtml5 Css3 Javascript Interview Questions And Answers Pdf >>>CLICK HERE<<<
Html5 Css3 Javascript Interview Questions And Answers Pdf HTML5, CSS3, Javascript and Jquery development. There can be a lot more HTML interview questions and answers. free html interview questions and
More informationGit Resolve Conflict Using Mine Command Line
Git Resolve Conflict Using Mine Command Line We'll explore what approaches there are to resolve the conflict, and then we'll Please, fix them up in the work tree, and then use 'git add/rm ' as appropriate
More informationAJAX: Asynchronous Event Handling Sunnie Chung
AJAX: Asynchronous Event Handling Sunnie Chung http://adaptivepath.org/ideas/ajax-new-approach-web-applications/ http://stackoverflow.com/questions/598436/does-an-asynchronous-call-always-create-call-a-new-thread
More information6.001 Notes: Section 15.1
6.001 Notes: Section 15.1 Slide 15.1.1 Our goal over the next few lectures is to build an interpreter, which in a very basic sense is the ultimate in programming, since doing so will allow us to define
More informationLinked Lists. What is a Linked List?
Linked Lists Along with arrays, linked lists form the basis for pretty much every other data stucture out there. This makes learning and understand linked lists very important. They are also usually the
More informationPart 1: jquery & History of DOM Scripting
Karl Swedberg: Intro to JavaScript & jquery 0:00:00 0:05:00 0:05:01 0:10:15 0:10:16 0:12:36 0:12:37 0:13:32 0:13:32 0:14:16 0:14:17 0:15:42 0:15:43 0:16:59 0:17:00 0:17:58 Part 1: jquery & History of DOM
More informationPost Experiment Interview Questions
Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid
More informationProgramming language components
Programming language components syntax: grammar rules for defining legal statements what's grammatically legal? how are things built up from smaller things? semantics: what things mean what do they compute?
More informationOpenGlobal Virtuemart Product Feeds
OpenGlobal Virtuemart Product Feeds Instruction Manual Introduction This Joomla! component makes it easy to provide CSV datafeeds of all of your Virtuemart products for various external companies. The
More informationSEEM4570 System Design and Implementation Lecture 03 JavaScript
SEEM4570 System Design and Implementation Lecture 03 JavaScript JavaScript (JS)! Developed by Netscape! A cross platform script language! Mainly used in web environment! Run programs on browsers (HTML
More informationUsing X-Particles with Team Render
Using X-Particles with Team Render Some users have experienced difficulty in using X-Particles with Team Render, so we have prepared this guide to using them together. Caching Using Team Render to Picture
More informationHow to Install Ubuntu on VirtualBox
How to Install Ubuntu on VirtualBox Updated on January 26, 2017 Melanie more VirtualBox is easy to use software that allows you to use multiple operating systems simultaneously. As different operating
More informationCortland can be accessed at .cortland.edu and then entering your credentials.
OWA training class Launching OWA Cortland email can be accessed at email.cortland.edu and then entering your credentials. Enter credentials here It can also be accessed through MyRedDragon. 1. 2. 3. 4.
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client
More informationI'm Andy Glover and this is the Java Technical Series of. the developerworks podcasts. My guest is Brian Jakovich. He is the
I'm Andy Glover and this is the Java Technical Series of the developerworks podcasts. My guest is Brian Jakovich. He is the director of Elastic Operations for Stelligent. He and I are going to talk about
More informationFrontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević
Frontend guide Everything you need to know about HTML, CSS, JavaScript and DOM Dejan V Čančarević Today frontend is treated as a separate part of Web development and therefore frontend developer jobs are
More informationA PROGRAM IS A SEQUENCE of instructions that a computer can execute to
A PROGRAM IS A SEQUENCE of instructions that a computer can execute to perform some task. A simple enough idea, but for the computer to make any use of the instructions, they must be written in a form
More informationLast &me: Javascript (forms and func&ons)
Let s debug some code together: hkp://www.clsp.jhu.edu/~anni/cs103/test_before.html hkp://www.clsp.jhu.edu/~anni/cs103/test_arer.html
More informationMITOCW watch?v=4dj1oguwtem
MITOCW watch?v=4dj1oguwtem PROFESSOR: So it's time to examine uncountable sets. And that's what we're going to do in this segment. So Cantor's question was, are all sets the same size? And he gives a definitive
More informationA lot of people make repeated mistakes of not calling their functions and getting errors. Make sure you're calling your functions.
Handout 2 Functions, Lists, For Loops and Tuples [ ] Functions -- parameters/arguments, "calling" functions, return values, etc. Please make sure you understand this example: def square(x): return x *
More information<form>. input elements. </form>
CS 183 4/8/2010 A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, text area fields, drop-down menus, radio buttons,
More informationClickteam Fusion 2.5 Creating a Debug System - Guide
INTRODUCTION In this guide, we will look at how to create your own 'debug' system in Fusion 2.5. Sometimes when you're developing and testing a game, you want to see some of the real-time values of certain
More informationSkill 1: Multiplying Polynomials
CS103 Spring 2018 Mathematical Prerequisites Although CS103 is primarily a math class, this course does not require any higher math as a prerequisite. The most advanced level of mathematics you'll need
More informationCPSC 320 Sample Solution, Playing with Graphs!
CPSC 320 Sample Solution, Playing with Graphs! September 23, 2017 Today we practice reasoning about graphs by playing with two new terms. These terms/concepts are useful in themselves but not tremendously
More informationCreating and Sharing a Google Calendar
Creating and Sharing a Google Calendar How to Create a Google Calendar You can only create new calendars on a browser on your computer or mobile device. Once the calendar is created, you'll be able to
More informationCS193X: Web Programming Fundamentals
CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) Today's schedule Today: - Keyboard events - Mobile events - Simple CSS animations - Victoria's office hours once again
More informationEventually, you'll be returned to the AVD Manager. From there, you'll see your new device.
Let's get started! Start Studio We might have a bit of work to do here Create new project Let's give it a useful name Note the traditional convention for company/package names We don't need C++ support
More informationRead Source Code the HTML Way
Read Source Code the HTML Way Kamran Soomro Abstract Cross-reference and convert source code to HTML for easy viewing. Every decent programmer has to study source code at some time or other. Sometimes
More informationITS331 Information Technology I Laboratory
ITS331 Information Technology I Laboratory Laboratory #11 Javascript and JQuery Javascript Javascript is a scripting language implemented as a part of most major web browsers. It directly runs on the client's
More informationSession 3: JavaScript - Structured Programming
INFM 603: Information Technology and Organizational Context Session 3: JavaScript - Structured Programming Jimmy Lin The ischool University of Maryland Thursday, September 25, 2014 Source: Wikipedia Types
More informationDefining Done in User Stories
This article originally appeared on Artima Developer on Wednesday, January 6, 2010. To access it online, visit: http://www.artima.com/articl es/defining_done.html Defining Done in User Stories By Victor
More informationMITOCW watch?v=kz7jjltq9r4
MITOCW watch?v=kz7jjltq9r4 PROFESSOR: We're going to look at the most fundamental of all mathematical data types, namely sets, and let's begin with the definitions. So informally, a set is a collection
More informationTourMaker Reference Manual. Intro
TourMaker Reference Manual Intro Getting Started Tutorial: Edit An Existing Tour Key Features & Tips Tutorial: Create A New Tour Posting A Tour Run Tours From Your Hard Drive Intro The World Wide Web is
More informationMITOCW watch?v=0jljzrnhwoi
MITOCW watch?v=0jljzrnhwoi The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To
More informationIntroduction. Using Styles. Word 2010 Styles and Themes. To Select a Style: Page 1
Word 2010 Styles and Themes Introduction Page 1 Styles and themes are powerful tools in Word that can help you easily create professional looking documents. A style is a predefined combination of font
More informationNote: Please use the actual date you accessed this material in your citation.
MIT OpenCourseWare http://ocw.mit.edu 18.06 Linear Algebra, Spring 2005 Please use the following citation format: Gilbert Strang, 18.06 Linear Algebra, Spring 2005. (Massachusetts Institute of Technology:
More informationAjax Simplified Nicholas Petreley Abstract Ajax can become complex as far as implementation, but the concept is quite simple. This is a simple tutorial on Ajax that I hope will ease the fears of those
More informationJavaScript Specialist v2.0 Exam 1D0-735
JavaScript Specialist v2.0 Exam 1D0-735 Domain 1: Essential JavaScript Principles and Practices 1.1: Identify characteristics of JavaScript and common programming practices. 1.1.1: List key JavaScript
More information