NodeJS, Variables, Input/Output (I/O)

Slides:



Advertisements
Similar presentations
Introducing JavaScript
Advertisements

Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
CIS101 Introduction to Computing Week 09 Spring 2004.
1 Introduction to PHP. 2 What is this “PHP” thing? Official description: “PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
PHP. Why should we learn web programming? No need write socket programming. - You can forget TCP/IP & OSI layers. - Web server handles socket tasks for.
INTERNET APPLICATION DEVELOPMENT For More visit:
TEAMWORK A FEW NOTES. MAYBE YOUR ONLY FULL-SCALE TEAM PROJECT AT WWU … 8 weeks A beginning and an end Consistent team membership Negotiation of schedules.
Nael Alian Introduction to PHP
Introduction to JavaScript Gordon Tian
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. HTML5 Evolving Standards JavaScript.
Chapter 2 Murach's JavaScript and jQuery, C2© 2012, Mike Murach & Associates, Inc.Slide 1.
IE Developer Tools Jonathan Seitel Program Manager.
Scion Macros How to make macros for Scion The Fast and Easy Guide.
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
PHP using MySQL Database for Web Development (part II)
PDO Database Connections
CSS Colors, JavaScript Variables, Conditionals and Basic Methods
Tutorial 10 Programming with JavaScript
Chapter 4 Client-Side Programming: the JavaScript Language
JavaScript is a programming language designed for Web pages.
PHP: includes MIS 3501 Jeremy Shafer Department of MIS
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
BASIC PHP and MYSQL Edward S. Flores.
PHP Introduction.
Introduction to JavaScript
Web Systems Development (CSC-215)
A second look at JavaScript
I/O in C Lecture 6 Winter Quarter Engineering H192 Winter 2005
Lesson 2: Input and Variables
PHP.
T. Jumana Abu Shmais – AOU - Riyadh
Due Next Monday Assignment 1 Start early
Cordova & Cordova Plugin Installation and Management
MIS JavaScript and API Workshop (Part 2)
An Introduction to JavaScript
Tutorial 10 Programming with JavaScript
Programming Control Structures with JavaScript Part 2
Intro to PHP.
Getting started with jQuery
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Introduction to Client/Server Computing
Web Service Installation and Configuration
Introduction to JavaScript
Introduction to JavaScript
Tutorial 10: Programming with javascript
Lecture 12: The Fetch Api and AJAx
Introduction to JavaScript
JavaScript Basics What is JavaScript?
Introducing JavaScript
JavaScript is a scripting language designed for Web pages by Netscape.
Assignment Operator, Mathematical Operators & String Operators (basics) MIS 3406 Department of MIS Fox School of Business Temple University.
NodeJS, Variables, Input/Output (I/O)
Values and Variables.
Intro to Programming (in JavaScript)
Presentation transcript:

NodeJS, Variables, Input/Output (I/O) MIS 3406 Department of MIS Fox School of Business Temple University

Purpose for these units Who loves to code? Who feels enabled to create new things? Who feels enable to dig into a system, understand exactly how it works and improve it? Who feels ready to build server applications with API in 3502?

Goals Quick refresher of programming focused on programming logic, not all of the HTML and CSS stuff Further develop you programming abilities Get better at the old stuff Learn about new stuff like Passing arguments Reading/writing files Executing host command Position you for success in 3502

What exactly is Node (or NodeJS)? NodeJS = JavaScript – HTML – CSS And is used to develop the server side of applications in client/server systems

What you will need Install NodeJS on your machine After you install NodeJS, you will need to install readline-sync “npm install readline-sync” Install Notepad++ on your machine A love of the command line! Add a contact to your e-Mail called “Email Code” that points to the address HTML_Co.6gh9i2dnxttkl2mt@u.box.com You’ll need to rename the file to be a .txt file to e-Mail it

The basic syntax rules for JavaScript JavaScript is actually pretty forgiving when it comes to missing semi-colons. Still, it is best to end each statement with a semi-colon.

Variables

Rules for naming variables A list of reserved words are on page 59 of your textbook.

Camel casing versus underscore notation theCat theDog theHouse Versus… the_cat the_dog the_house

Naming recommendations for identifiers

JavaScript’s primitive data types Discuss: Can you give me an example of each of these? Can you tell me what these are in your own words?

Examples of number values

Examples of string values

The two Boolean values

How to declare and assign a value to a variable in two statements Notice the use of the var command here. We use var when creating a new variable.

How to declare and assign a value to a variable in one statement

Could it be this easy… …without all of that HTML and CSS stuff

NodeJS isn’t Quite JavaScript Remember… Replace with…

Replacement for prompt

Prompt for numbers…

What is an “Argument”?

Hello World with Arguments

Pair Programming Pair programming is an agile software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator,[1] reviews each line of code as it is typed in. The two programmers switch roles frequently. - Wikipedia

What did you learn? Write a program that prompts you for and displays the following information: Your name Your address, with city, state, and ZIP Your telephone number Your college major Can you change this program to accept all of this information as arguments? On the Windows platform, you can wrap strings that contain blanks with quotes to pass them as a single argument. For example: node DisplayInfo.js “Mart Doyle” “13047 Sewell Road” Philadelphia PA 19116…