Comments Introduction to JavaScript © Copyright 2016, Fred McClurg All Rights Reserved.

Slides:



Advertisements
Similar presentations
1 Copyright © 2013 The Printer Working Group. All rights reserved. The Printer Working Group Working Group Name Month DD, 2011 City, State 1.
Advertisements

Introducing JavaScript
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 4 Client Side Scripting JavaScript Looping.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2014 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2014 All Rights Reserved.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved. 1.
Code as Communication Programming Studio Spring 2015.
Javascript and the Web Whys and Hows of Javascript.
Chapter 3 Getting Started with C++
Ternary Operators © Copyright 2014, Fred McClurg All Rights Reserved.
Introduction to JavaScript Kirkwood Continuing Education © Copyright 2014, Fred McClurg All Rights Reserved.
© 2007 Fred Ryals Conditional Content – A Dynamic HTML Demonstration Fred Ryals Senior Web Developer Leading Edge Design & Systems.
Looping Constructs “Here we go loop de loop, on a Saturday night” – Johnny Thunder “First I'm up, and then I'm down. Then my heart goes around and around.”
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
Programming Lifecycle
JavaScript, Fourth Edition
1 JavaScript in Context. Server-Side Programming.
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?
Operators © Copyright 2014, Fred McClurg All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2015, Fred McClurg, All Rights.
HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
Page Load © Copyright 2014, Fred McClurg All Rights Reserved.
Browsers © Copyright 2014, Fred McClurg All Rights Reserved.
Arrays “Array, I'm bound array, 'cross the wide Missouri.” ‒ Old Programmer’s Folk Song © Copyright 2014, Fred McClurg All Rights Reserved.
Development Tools © Copyright 2014, Fred McClurg All Rights Reserved.
USING UNITY JAVASCRIPT. CONVENTIONS AND SYNTAX IN JAVASCRIPT Case Sensitivity All keywords like var or function must be in lowercase. All variable names,
Numbers © Copyright 2014, Fred McClurg All Rights Reserved.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(6) JavaScript:Introduction to Scripting.
JavaScript Syntax, how to use it in a HTML document
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Conditional Statements © Copyright 2014, Fred McClurg All Rights Reserved.
CreatingClasses-SlideShow-part41 Creating Classes part 4 Barb Ericson Georgia Institute of Technology Dec 2009.
Objects © Copyright 2014, Fred McClurg All Rights Reserved.
CPS120: Introduction to Computer Science Introduction to C++
1 Server versus Client-Side Programming Server-SideClient-Side.
1 JavaScript in Context. Server-Side Programming.
Comments Tonga Institute of Higher Education. Introduction No matter how smart you are, you will forget what your code does! Comments make your code more.
Custom Functions © Copyright 2014, Fred McClurg All Rights Reserved.
Introduction. MIS 5450 Behavioral Layer JavaScript and DOM Structural Layer XHTML Presentation Layer CSS Design Development Process.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2016, Fred McClurg, All Rights.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Topics for today: 1.Comments 2.Data types 3.Variable declaration.
Copyright© Cosmos Culture Ltd. All rights reserved. 1.
1 Sections 3.3 – 3.4 Terminal I/O and Comments Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Web Design II Flat Rock Community Schools
Intro to JavaScript CS 1150 Spring 2017.
Exploring JavaScript Ch 14
Variable Scope Variable, variable, who’s got the variable?
© Copyright 2016, Fred McClurg All Rights Reserved
Copyrights apply.
Cascading Style Sheets - Building a stylesheet
Kirkwood Center for Continuing Education
WEB PROGRAMMING JavaScript.
توكيد الذات.
The Internet 11/29/11 Functions
An Introduction to JavaScript
A function is a group of statements that exist within a program for the purpose of performing a specific task. We can use functions to divide and conquer.
Controlling Program Flow
Chap 2. Identifiers, Keywords, and Types
Cascading Style Sheets - Building a stylesheet
Copyright © 2016 Elsevier Inc. All rights reserved.
Presentation transcript:

Comments Introduction to JavaScript © Copyright 2016, Fred McClurg All Rights Reserved

JavaScript Comments What is a comment? Information that is ignored by JavaScript What purpose do comments serve? 1.Provides code documentation for self 2.Provides code documentation for others 3.Improves readability and maintainability 4.Promotes reuse 5.Disabling code (for debugging) 2

Inline Comment Single Line Comment: The “ // ” is for commenting a single line. From “ // ” to end of line is ignored. Example: // Single line comment. // Code following slash-slash // to end of line is ignored // Often used after statement var x = 4; // inline comment 3 slashSlash.html

Multi-line Comment: Multiple Line (or Block) Comment: /* single line comment */ /* * multiple line * block comment */ 4 slashStar.html

Comment Disabling Code Disabling Code: // Disabling parts of code var calendar = { // 'year': 2016, /* 'month': 'Dec', 'day': 25, */ 'holiday': 'Christmas', }; console.log( calendar ); 5 disableCode.html