Javascript JAVASCRIPT FUNDAMENTALS Agenda Qbackground & Introduction Qdata Types, Objects & Arrays Qlooping & Iteration Qfunctions, Methods & Constructors
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Node.Js As a Networking Tool
Node.js As a networking tool 28.12.2010 About Contributor Co-founder Felix Geisendörfer node.js driver node-formidable Who are you? Node.js? JavaScript? Port = 80 ? Port != 80 ? Node's goal is to provide an easy way to build scalable network programs. Node.js • Created by Ryan Dahl • Google’s V8 JavaScript engine (no DOM) • Module system, I/O bindings, Common Protocols Network Edition Hello World $ cat hello.js var net = require('net'); net.createServer(function(socket) { socket.write('hello world\n'); socket.end(); }).listen(0x27C3); $ node hello.js & [1] 3591 $ nc localhost 10179 hello world Why JavaScript? 3 Reasons #1 - The good parts V8 (Chrome) SpiderMonkey (Firefox) JavaScriptCore (Safari) #2 - JS Engine Wars Chakra (IE9) Carakan (Opera) #3 - No I/O or Threads Non-blocking I/O Blocking I/O db.query('SELECT A'); console.log('query A done'); db.query('SELECT B'); console.log('query B done'); Time = SUM(A, B) Non-Blocking I/O db.query('SELECT A', function(result) { console.log('query A done'); }); db.query('SELECT B', function(result) { console.log('query B done'); }); Time = MAX(A, B) libev by Marc Lehmann libev • An infinite loop (event loop) • Polls the OS for events (select, epoll, kqueue, ...) • Allows you to register watchers / callbacks for the events you care about Buffers Buffers • Raw C memory allocation • Similar to an array of integers • Can be converted to and from JS strings Buffers buffer.write('Hello Buffer'); buffer.toString('utf-8'); buffer[0] = 23; buffer.slice(10, 20); Reverse Hello World $ cat reverse_hello.js -
General Report on the Activities of the European Union Gnrl Report General 2010 Nteatvte Fteerpa No — on the Activities of the European Union 2010
NA-AD-11-001-EN-C ISSN ISSN 1608-7321 GENERAL REPORT ON THE ACTIVITIES OF THE EUROPEAN UNION GENERAL GENERAL REPORT 2010 ON THE ACTIVITIES OF THE EUROPEAN UNION UNION EUROPEAN THE OF ACTIVITIES THE ON — 2010 doi:10.2775/59174 EN EUROPEAN COMMISSION Price (excluding VAT) in Luxembourg: EUR 7 The European Union 0500 km Açores (PT) Reykjavík Ísland Madeira (PT) Canarias (ES) Guadeloupe (FR) Martinique (FR) Suomi Paramaribo Finland Guyane Norge Suriname Réunion (FR) (FR) Helsinki Brasil Helsingfors Oslo Sverige Stockholm Tallinn Rossija Eesti Moskva United Kingdom RƯga Latvija Danmark Baile Átha Cliath Éire København Dublin Lietuva Ireland Vilnius R. Minsk Nederland Belarus' London Qazaqstan Amsterdam Berlin Warszawa België Brussel Polska Bruxelles Deutschland Belgique Kyïv Luxembourg Praha Paris Ukraʀna Luxembourg ýeská republika Slovensko Bratislava Wien Moldova France Schweiz Liechtenstein Budapest Bern Suisse Österreich Chiúinău Svizzera Magyarország Slovenija Ljubljana Zagreb România Hrvatska Sakartvelo Tbilisi Bucureúti Bosna i Beograd Azԥrbaycan San Marino Hercegovina Portugal Monaco Srbija Haʀastan General Report on the Activities of the European Union — 2010 Andorra Sarajevo Ȼɴɥɝɚɪɢɹ Yerevan Crna Priština Bulgaria (Azԥr.) Madrid Gora Lisboa Italia Kosovo ɋɨɮɢɹ Roma Podgorica * UNSCR 1244 Sofia Iran Skopje European Commission España Città del Vaticano Tiranë P.J.R.M. Shqipëria Ankara Directorate-General for Communication Türkiye ǼȜȜȐįĮ Publications Ellada ǹșȒȞĮȚ Athinai Alger 1049 Brussels Souriya Rabat Tunis ȁİȣțȦıȓĮ ȀȪʌȡȠȢ Lefkosia Iraq Lefkosa El Maghreb El Djazâir Valletta Kypros BELGIUM Tounis Malta Kibris Libnan Beyrouth Dimashq Member States of the European Union (2011) The General Report on the Activities of the European Union — 2010 Candidate countries was adopted by the European Commission on 16 February 2011 under reference number SEC(2011) 189. -
Microsoft in Education Professional Development Suite UNLOCK the POTENTIAL of YOUR DISTRICT
SERVICES FLYER Microsoft in Education Professional Development Suite UNLOCK THE POTENTIAL OF YOUR DISTRICT As the world’s leading provider of education IT, Lenovo understands that Why Lenovo and Education Collaborators? making technology matter to learning Real World – Real Results The unique demands of your school and students isn’t just about hardware and software. require a diverse set of learning strategies. We will work Teachers must be empowered with with your team to design a plan that leverages your existing resources and addresses both your needs and tools that build on their dedication your budget requirements. and expertise. Research shows that professional development drives stronger outcomes. Educators, and ultimately students, Through a partnership with Educational will benefit from the collaboration and differentiated Collaborators, a nationally recognized learning techniques, delivered in ways that matter to them. leader in educational training, Lenovo Multiple Learning Platforms offers a customizable combination Support your teachers’ own unique learning styles through face-to-face, train-the-trainer, or web-based of training programs that enable training, all conducted by experts skilled in their your school or district to support the specific area of interest. professional development that’s been • On-Site, hands-on, interactive workshops at proven fundamental to stronger student your location. outcomes — all delivered in a method that • Webinars, small group teaching and learning, best suits your budget and needs. capitalizing on the personal face-to-face collaboration of video conferencing and features such as screen sharing, Q&A app, and more. Facilitated by Educational Collaborators, the classes focus on the Microsoft • Mentoring, personalized one-on-one professional development via scheduled, remote mentoring that Professional Development Suite for facilitates continued personal learning and exposure Education, guiding participants through to tools they can learn today and use tomorrow. -
CHOICE – a NEW STANDARD for COMPETITION LAW ANALYSIS? a Choice — a New Standard for Competition Law Analysis?
GO TO TABLE OF CONTENTS GO TO TABLE OF CONTENTS CHOICE – A NEW STANDARD FOR COMPETITION LAW ANALYSIS? a Choice — A New Standard for Competition Law Analysis? Editors Paul Nihoul Nicolas Charbit Elisa Ramundo Associate Editor Duy D. Pham © Concurrences Review, 2016 GO TO TABLE OF CONTENTS All rights reserved. No photocopying: copyright licenses do not apply. The information provided in this publication is general and may not apply in a specifc situation. Legal advice should always be sought before taking any legal action based on the information provided. The publisher accepts no responsibility for any acts or omissions contained herein. Enquiries concerning reproduction should be sent to the Institute of Competition Law, at the address below. Copyright © 2016 by Institute of Competition Law 60 Broad Street, Suite 3502, NY 10004 www.concurrences.com [email protected] Printed in the United States of America First Printing, 2016 Publisher’s Cataloging-in-Publication (Provided by Quality Books, Inc.) Choice—a new standard for competition law analysis? Editors, Paul Nihoul, Nicolas Charbit, Elisa Ramundo. pages cm LCCN 2016939447 ISBN 978-1-939007-51-3 ISBN 978-1-939007-54-4 ISBN 978-1-939007-55-1 1. Antitrust law. 2. Antitrust law—Europe. 3. Antitrust law—United States. 4. European Union. 5. Consumer behavior. 6. Consumers—Attitudes. 7. Consumption (Economics) I. Nihoul, Paul, editor. II. Charbit, Nicolas, editor. III. Ramundo, Elisa, editor. K3850.C485 2016 343.07’21 QBI16-600070 Cover and book design: Yves Buliard, www.yvesbuliard.fr Layout implementation: Darlene Swanson, www.van-garde.com GO TO TABLE OF CONTENTS ii CHOICE – A NEW STANDARD FOR COMPETITION LAW ANALYSIS? Editors’ Note PAUL NIHOUL NICOLAS CHARBIT ELISA RAMUNDO In this book, ten prominent authors offer eleven contributions that provide their varying perspectives on the subject of consumer choice: Paul Nihoul discusses how freedom of choice has emerged as a crucial concept in the application of EU competition law; Neil W. -
Internet Explorer 9 Features
m National Institute of Information Technologies NIIT White Paper On “What is New in Internet Explorer 9” Submitted by: Md. Yusuf Hasan Student ID: S093022200027 Year: 1st Quarter: 2nd Program: M.M.S Date - 08 June 2010 Dhaka - Bangladesh Internet Explorer History Abstract: In the early 90s—the dawn of history as far as the World Wide Web is concerned—relatively few users were communicating across this Internet Explorer 9 (abbreviated as IE9) is the upcoming global network. They used an assortment of shareware and other version of the Internet Explorer web browser from software for Microsoft Windows operating system. In 1995, Microsoft Microsoft. It is currently in development, but developer hosted an Internet Strategy Day and announced its commitment to adding Internet capabilities to all its products. In fulfillment of that previews have been released. announcement, Microsoft Internet Explorer arrived as both a graphical Web browser and the name for a set of technologies. IE9 will have complete or nearly complete support for all 1995: Internet Explorer 1.0: In July 1995, Microsoft released the CSS 3 selectors, border-radius CSS 3 property, faster Windows 95 operating system, which included built-in support for JavaScript and embedded ICC v2 or v4 color profiles dial-up networking and TCP/IP (Transmission Control support via Windows Color System. IE9 will feature Protocol/Internet Protocol), key technologies for connecting to the hardware accelerated graphics rendering using Direct2D, Internet. In response to the growing public interest in the Internet, Microsoft created an add-on to the operating system called Internet hardware accelerated text rendering using Direct Write, Explorer 1.0. -
Introducing Silverlight From?
02_0672330148_ch01.qxd 9/25/08 2:23 PM Page 3 Silverlight 2 Unleashed, published by SAMS, Copyright 2009 Pearson Education, Inc. ISBN 0672330148 CHAPTER 1 IN THIS CHAPTER . Where Does Silverlight Come Introducing Silverlight From? . Using Third-Party Plug-Ins . Running on Multiple Platforms . Making the Web Application Secure t all started when Microsoft presented its revolutionary I . Introducing Silverlight.net user interface (UI) framework, Windows Presentation Foundation, to an enthusiastic crowd of graphics designers, . What Do You Need to Run software developers, and businessmen in March 2006 at the Silverlight? new MIX conference in Las Vegas. Microsoft also added . Updating Your Runtime— one session about a lesser-known technology with the Automatically rather barbarian name Windows Presentation Foundation . Trying Silverlight Demos Everywhere, or WPF/E. There was nothing much to see yet, but the abstract was enticing: “With WPF/E you’ll be able . What Do You Need to Develop to build rich, interactive experiences that run in major Web Silverlight? browsers on major platforms as well as on mobile devices.” . Reading the Documentation A little more than a year later, at the second edition of the . Looking into Silverlight’s same MIX conference, Scott Guthrie (general manager at Future Microsoft, responsible for most of the .NET teams) climbed on stage and gave the crowd an amazing software demon- stration. The barbarian WPF/E was gone; in its place was Silverlight (see Figure 1.1). A bright new logo revolved on the screens. Gradients and animations were all over the place. Planes flew over the web browser’s window, connecting US cities while Scott was planning his next trips; a chess application let the browser’s JavaScript engine play against .NET, demonstrat- ing without any doubt the superior power of the compiled .NET application over JavaScript’s interpreted code. -
Npm Packages As Ingredients: a Recipe-Based Approach
npm Packages as Ingredients: a Recipe-based Approach Kyriakos C. Chatzidimitriou, Michail D. Papamichail, Themistoklis Diamantopoulos, Napoleon-Christos Oikonomou, and Andreas L. Symeonidis Electrical and Computer Engineering Dept., Aristotle University of Thessaloniki, Thessaloniki, Greece fkyrcha, mpapamic, thdiaman, [email protected], [email protected] Keywords: Dependency Networks, Software Reuse, JavaScript, npm, node. Abstract: The sharing and growth of open source software packages in the npm JavaScript (JS) ecosystem has been exponential, not only in numbers but also in terms of interconnectivity, to the extend that often the size of de- pendencies has become more than the size of the written code. This reuse-oriented paradigm, often attributed to the lack of a standard library in node and/or in the micropackaging culture of the ecosystem, yields interest- ing insights on the way developers build their packages. In this work we view the dependency network of the npm ecosystem from a “culinary” perspective. We assume that dependencies are the ingredients in a recipe, which corresponds to the produced software package. We employ network analysis and information retrieval techniques in order to capture the dependencies that tend to co-occur in the development of npm packages and identify the communities that have been evolved as the main drivers for npm’s exponential growth. 1 INTRODUCTION Given that dependencies and reusability have be- come very important in today’s software develop- The popularity of JS is constantly increasing, and ment process, npm registry has become a “must” along is increasing the popularity of frameworks for place for developers to share packages, defining code building server (e.g. -
How to Pick Your Build Tool
How to Pick your Build Tool By Nico Bevacqua, author of JavaScript Application Design Committing to a build technology is hard. It's an important choice and you should treat it as such. In this article, based on the Appendix from JavaScript Application Design, you'll learn about three build tools used most often in front-end development workflows. The tools covered are Grunt, the configuration-driven build tool; npm, a package manager that can also double as a build tool; and Gulp, a code-driven build tool that's somewhere in between Grunt and npm. Deciding on a technology is always hard. You don't want to make commitments you won't be able to back out of, but eventually you'll have to make a choice and go for something that does what you need it to do. Committing to a build technology is no different in this regard: it's an important choice and you should treat it as such. There are three build tools I use most often in front-end development workflows. These are: Grunt, the configuration-driven build tool; npm, a package manager that can also double as a build tool; and Gulp, a code-driven build tool that's somewhere in between Grunt and npm. In this article, I'll lay out the situations in which a particular tool might be better than the others. Grunt: The good parts The single best aspect of Grunt is its ease of use. It enables programmers to develop build flows using JavaScript almost effortlessly. All that's required is searching for the appropriate plugin, reading its documentation, and then installing and configuring it. -
Visual Studio 2013 Web Tooling
Visual Studio 2013 Web Tooling Overview Visual Studio is an excellent development environment for .NET-based Windows and web projects. It includes a powerful text editor that can easily be used to edit standalone files without a project. Visual Studio maintains a full-featured parse tree as you edit each file. This allows Visual Studio to provide unparalleled auto-completion and document-based actions while making the development experience much faster and more pleasant. These features are especially powerful in HTML and CSS documents. All of this power is also available for extensions, making it simple to extend the editors with powerful new features to suit your needs. Web Essentials is a collection of (mostly) web-related enhancements to Visual Studio. It includes lots of new IntelliSense completions (especially for CSS), new Browser Link features, automatic JSHint for JavaScript files, new warnings for HTML and CSS, and many other features that are essential to modern web development. Objectives In this hands-on lab, you will learn how to: Use new HTML editor features included in Web Essentials such as rich HTML5 code snippets and Zen coding Use new CSS editor features included in Web Essentials such as the Color picker and Browser matrix tooltip Use new JavaScript editor features included in Web Essentials such as Extract to File and IntelliSense for all HTML elements Exchange data between your browser and Visual Studio using Browser Link Prerequisites The following is required to complete this hands-on lab: Microsoft Visual Studio Professional 2013 or greater Web Essentials 2013 Google Chrome Setup In order to run the exercises in this hands-on lab, you will need to set up your environment first. -
Node.Js I – Getting Started Chesapeake Node.Js User Group (CNUG)
Node.js I – Getting Started Chesapeake Node.js User Group (CNUG) https://www.meetup.com/Chesapeake-Region-nodeJS-Developers-Group Agenda ➢ Installing Node.js ✓ Background ✓ Node.js Run-time Architecture ✓ Node.js & npm software installation ✓ JavaScript Code Editors ✓ Installation verification ✓ Node.js Command Line Interface (CLI) ✓ Read-Evaluate-Print-Loop (REPL) Interactive Console ✓ Debugging Mode ✓ JSHint ✓ Documentation Node.js – Background ➢ What is Node.js? ❑ Node.js is a server side (Back-end) JavaScript runtime ❑ Node.js runs “V8” ✓ Google’s high performance JavaScript engine ✓ Same engine used for JavaScript in the Chrome browser ✓ Written in C++ ✓ https://developers.google.com/v8/ ❑ Node.js implements ECMAScript ✓ Specified by the ECMA-262 specification ✓ Node.js support for ECMA-262 standard by version: • https://node.green/ Node.js – Node.js Run-time Architectural Concepts ➢ Node.js is designed for Single Threading ❑ Main Event listeners are single threaded ✓ Events immediately handed off to the thread pool ✓ This makes Node.js perfect for Containers ❑ JS programs are single threaded ✓ Use asynchronous (Non-blocking) calls ❑ Background worker threads for I/O ❑ Underlying Linux kernel is multi-threaded ➢ Event Loop leverages Linux multi-threading ❑ Events queued ❑ Queues processed in Round Robin fashion Node.js – Event Processing Loop Node.js – Downloading Software ➢ Download software from Node.js site: ❑ https://nodejs.org/en/download/ ❑ Supported Platforms ✓ Windows (Installer or Binary) ✓ Mac (Installer or Binary) ✓ Linux -
Minutes of the 42Nd Meeting of TC39, Boston, September 2014
Ecma/TC39/2014/051 Ecma/GA/2014/118 Minutes of the: 42nd meeting of Ecma TC39 in: Boston, MA, USA on: 23-25 September 2014 1 Opening, welcome and roll call 1.1 Opening of the meeting (Mr. Neumann) Mr. Neumann has welcomed the delegates at Nine Zero Hotel (hosted by Bocoup) in Boston, MA, USA. Companies / organizations in attendance: Mozilla, Google, Microsoft, Intel, eBay, jQuery, Yahoo!, IBM; Facebook, IETF 1.2 Introduction of attendees John Neumann – Ecma International Erik Arvidsson – Google Mark Miller – Google Andreas Rossberg - Google Domenic Denicola – Google Erik Toth – Paypal / eBay Allen Wirfs-Brock – Mozilla Nicholas Matsakis – Mozilla Eric Ferraiuolo – Yahoo! Caridy Patino – Yahoo! Rick Waldron – jQuery Yehuda Katz – jQuery Dave Herman – Mozilla Brendan Eich (invited expert) Jeff Morrison – Facebook Sebastian Markbage – Facebook Brian Terlson – Microsoft Jonathan Turner – Microsoft Peter Jensen – Intel Simon Kaegi – IBM Boris Zbarsky - Mozilla Matt Miller – IETF (liaison) Ecma International Rue du Rhône 114 CH-1204 Geneva T/F: +41 22 849 6000/01 www.ecma-international.org PC 1.3 Host facilities, local logistics On behalf of Bocoup Rick Waldron welcomed the delegates and explained the logistics. 1.4 List of Ecma documents considered 2014/038 Minutes of the 41st meeting of TC39, Redmond, July 2014 2014/039 TC39 RF TG form signed by the Imperial College of science technology and medicine 2014/040 Venue for the 42nd meeting of TC39, Boston, September 2014 (Rev. 1) 2014/041 Agenda for the 42nd meeting of TC39, Boston, September -
User Guide User User Guide
El color actual del equipo puede variar. puede equipo del actual color El afiliadas a AT&T. © 2010 AT&T Intellectual Property. Todos los derechos reservados. derechos los Todos Property. Intellectual AT&T 2010 © AT&T. a afiliadas contenidas aquí son marcas comerciales de AT&T Intellectual Property y/o compañías compañías y/o Property Intellectual AT&T de comerciales marcas son aquí contenidas del software del teléfono o del proveedor del servicio. Todas las marcas de AT&T AT&T de marcas las Todas servicio. del proveedor del o teléfono del software del Parte del contenido de este guía del usuario puede variar en el teléfono, dependiendo dependiendo teléfono, el en variar puede usuario del guía este de contenido del Parte User Guide User Guide Guía del Usuario Guía del Usuario del Guía Some of the contents in this manual may differ from your phone depending on the software of the phone or your service provider. AT&T marks contained herein are trademarks of AT&T Intellectual Property and/or AT&T affiliated companies. © 2010 AT&T Intellectual Property. All rights reserved. Actual color of the phone may vary. Bluetooth QD ID B016767 ID QD Bluetooth Your phone is designed to make it easy for you to access a wide variety of content. For your protection, we want you to be aware that some applications that you enable may involve the location of your phone being shared. For applications available through AT&T, we offer privacy controls that let you decide how an application may use the location of your phone and other phones on your account.