GithubHelp home page GithubHelp logo

ux-mad-workshop's Introduction

Introduction to JavaScript & jQuery Workshop

Want to get up to speed on JavaScript, one of the most popular languages on the web? This workshop will introduce you to some of the basics of programming and then move into JavaScript fundamentals and how they apply to jQuery. Once the foundation is laid, we'll begin building a client-side contacts manager app that will expose best practices and why they exist. Time willing, we'll look at bringing even better structure to the contacts app by converting it to Backbone.js. This workshop will arm you with the knowledge to help debug your existing JavaScript code and how to write modular and performant JavaScript in the future.

Vocabulary

Assignment

  • A reference

Variables

  • Store assignment

Functions

  • Execute code on demand

Arguments

  • Allow function reuse

Objects

  • Have properties/attributes

Invocation

  • Call or run a defined function

Methods

  • Function properties of an object

Operators

  • assign, do math, increment/decrement

PascalCase

  • capitalize the first character of each new phrase
  • Used for constructors and first class objects

camelCase

  • capitalize the first character of each new phrase except the first phrase

Callback

  • function to execute later

Syntax Legend

Parentheses ()

  • invoke functions and surround arguments

Semicolon ;

  • end a statement or expression

Indentation

  • indicates hierarchy and nested statements

Newlines

  • Separate statements

Double Newlines

  • Separate unrelated blocks of code

Period .

  • Delimits object heirarchy

Exercises

Baseline

Write a function that splits up a full name and returns a random number between 1-10 between the first and last name.

#1

Write a function that takes an email string argument in standard contact format (Todd Larsen [email protected]) and returns a user object with the following attributes:

#2

Build a vertical accordian list that expands one panel at a time and add an 'expanded' class to the active panel when it's open.

#3

Optimize the previous accordian exercise.

#4

Build a contacts app.

Recommended Resources

ux-mad-workshop's People

Watchers

 avatar  avatar  avatar

Forkers

vip000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.