New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

JavaScript Essential Training
Illustration by

Getting to know the tools and applications


From:

JavaScript Essential Training

with Simon Allardice

Video: Getting to know the tools and applications

Some programming languages are tied closely to certain development environments and platforms. If you tell me you're writing iPhone apps, I'm going to assume you're using Objective-C, on a Mac, using Xcode. If you're writing.NET apps, you're probably using Visual Studio on a PC. JavaScript has no such association. There is no one true program here, or one true platform. It's as agnostic as they come. So when I'm asked what application I'd recommend for writing and editing JavaScript, my answer is "Whatever you're using already." If you use Dreamweaver to make your web pages, stay there to write your JavaScript, or Coda, TextMate, BBEdit, Visual Studio, Eclipse, Komodo, Emacs, Vi, or whatever, if you know your way around it, stay there.
Expand all | Collapse all
  1. 3m 28s
    1. Welcome
      1m 1s
    2. What you should know
      1m 44s
    3. Using the exercise files
      43s
  2. 15m 41s
    1. Introduction to JavaScript
      8m 6s
    2. Creating your first JavaScript
      2m 13s
    3. Getting to know the tools and applications
      5m 22s
  3. 56m 8s
    1. Understanding the structure of JavaScript code
      7m 9s
    2. Where to write your JavaScript
      3m 56s
    3. Creating variables
      6m 21s
    4. Working with conditional code
      5m 44s
    5. Working with operators
      13m 28s
    6. Sending messages to the console
      2m 59s
    7. Working with loops
      8m 1s
    8. Creating functions
      8m 30s
  4. 36m 13s
    1. Working with arrays
      7m 57s
    2. Working with numbers
      6m 13s
    3. Working with strings
      8m 27s
    4. Working with dates
      5m 38s
    5. Working with objects
      7m 58s
  5. 9m 6s
    1. What is the DOM?
      5m 49s
    2. Working with nodes and elements
      3m 17s
  6. 25m 17s
    1. Accessing DOM elements
      11m 3s
    2. Changing DOM elements
      5m 42s
    3. Creating DOM elements
      8m 32s
  7. 24m 45s
    1. Introduction to JavaScript event handling
      8m 16s
    2. Working with onClick and onLoad events
      7m 36s
    3. Working with onBlur and onFocus events
      2m 36s
    4. Working with timers
      6m 17s
  8. 21m 41s
    1. Common JavaScript errors
      7m 14s
    2. Using Firebug
      4m 7s
    3. Going through a debugging session
      10m 20s
  9. 10m 13s
    1. Accessing form elements
      4m 20s
    2. Preventing a form from being submitted
      2m 36s
    3. Hiding and showing form sections
      3m 17s
  10. 9m 49s
    1. CSS and JavaScript
      3m 46s
    2. Removing and applying CSS classes
      2m 16s
    3. Changing inline styles
      3m 47s
  11. 19m 44s
    1. Understanding JavaScript style
      7m 39s
    2. Minifying your code
      4m 28s
    3. Using JavaScript code checkers
      7m 37s
  12. 22m 24s
    1. Introduction to JavaScript libraries
      3m 17s
    2. Linking to multiple JavaScript files
      2m 11s
    3. Introduction to jQuery
      12m 7s
    4. Using a content distribution network to deliver JavaScript files
      4m 49s
  13. 17m 35s
    1. JavaScript in HTML5
      9m 37s
    2. Using Modernizr
      3m 2s
    3. Using Strict Mode
      4m 56s
  14. 33m 3s
    1. Knowing the JavaScript to avoid
      6m 35s
    2. Introduction to regular expressions
      6m 56s
    3. Working with AJAX
      10m 44s
    4. Working with objects and prototypes
      8m 48s
  15. 21m 10s
    1. Example: Countdown
      8m 3s
    2. Example: Resize
      5m 47s
    3. Example: Accordion
      7m 20s
  16. 4m 58s
    1. Where to go from here
      4m 0s
    2. Goodbye
      58s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
JavaScript Essential Training
5h 31m Beginner Jul 22, 2011

Viewers: in countries Watching now:

Use JavaScript to add new features and a richer, more compelling user interface on web pages. This course keeps current best practices and practical uses for JavaScript in mind, while covering syntax, working with the DOM, and developing and debugging across multiple platforms, devices, and browsers. Author Simon Allardice also shows how to progressively enhance and gracefully degrade web pages, and take advantage of the world of JavaScript libraries now available.

Topics include:
  • Understanding the structure of JavaScript code
  • Creating variables, functions, and loops
  • Writing conditional code
  • Sending messages to the console
  • Working with different variable types and objects
  • Creating and changing DOM objects
  • Event handling
  • Working with timers
  • Debugging JavaScript
  • Building smarter forms
  • Working with CSS, HTML5, and JavaScript
  • Using regular expressions
Subjects:
Developer Web Web Design Programming Languages Web Development
Software:
JavaScript
Author:
Simon Allardice

Getting to know the tools and applications

Some programming languages are tied closely to certain development environments and platforms. If you tell me you're writing iPhone apps, I'm going to assume you're using Objective-C, on a Mac, using Xcode. If you're writing.NET apps, you're probably using Visual Studio on a PC. JavaScript has no such association. There is no one true program here, or one true platform. It's as agnostic as they come. So when I'm asked what application I'd recommend for writing and editing JavaScript, my answer is "Whatever you're using already." If you use Dreamweaver to make your web pages, stay there to write your JavaScript, or Coda, TextMate, BBEdit, Visual Studio, Eclipse, Komodo, Emacs, Vi, or whatever, if you know your way around it, stay there.

Every modern web-development or programming application supports JavaScript editing. Now for some of this course, I'm going to use Aptana Studio available from aptana.com. And I'm using this here for two main reasons: one, it's free; and two, it's available on Mac, PC, and Linux. I'm going to record this course mainly on a Mac, but that was a coin-toss decision. Whatever you're using is fine; the platform is irrelevant. Now this course does not require Aptana, and I won't be spending time exploring its features.

I'm just using it here as a simple JavaScript and HTML code editor because it would be tedious for me to use TextEdit or Notepad all the time. I want at least line numbers and basic indenting and formatting. So if you need an editor, check out Aptana; otherwise, feel free to stay with what you already know. Now the second set of tools are more important than your operating system, and more important than even your editing environment: the browser. This is where your code runs. Now you may have a favorite browser-- most people do--but there's really no excuse for not having all the major browsers.

And I would suggest having the latest version of them. While you can make a case for developing using older browsers to check performance and backwards compatibility, the benefit of the latest browsers is that the JavaScript tools get a lot better. And that's more important to us. Now Internet Explorer in all its versions still has the biggest percentage of total browser market share, but Firefox is the most popular cross-platform browser. It has great JavaScript debugging tools, and it's what I'll be using most of the time in this course.

So if you don't have it already, grab yourself the latest stable version of Firefox. I'm using Firefox 4 right now, which is the current stable release as I was recording this course. And you should also go and install-- if you haven't already--the Firebug extension, which you can get from getfirebug.com. Now, this is a fantastic tool for just general web development, but one of the things Firebug allows us to do is experiment with JavaScript directly in the browser without even creating HTML files.

So I'm going to jump over and install this, find the latest version, which for me is 1.7. This has point releases quite often, so you're likely to see a different version of it. I'm going to go ahead and select to install it. And once the browser restarts, I have Firebug installed. And I can actually turn it on and off by clicking down here. There's a little bug icon at the lower right-hand side of the status bar. And I can just use it to toggle the Firebug panel on and off.

It can also be set to open up in its own window, but I'm going to leave it here for now. One of the great things Firebug allows us to do is experiment with JavaScript directly in the browser without even creating HTML files. I'll get deeper into Firebug later on because it has several useful sections that I can get to by clicking the links on the panel here, but the one I'm interested in is the Console one. Right now, it's giving me a message that the Console panel is disabled, so I'm going to click the little dropdown arrow here and say I want to enable it.

And it pops up a couple of messages here that it's enabling the JavaScript debugger to support Console and so on. You see right down here at the bottom where I've got the three Greater Than signs, I can actually just directly type in JavaScript and run it. Just write a statement and hit Return or Enter to execute it, in this case, popping up an alert box. However, one line at a time is a little tedious, but over here again at the right-hand side, I have this little button called Command Editor, and if I click that, what it's going to do is divide this panel into two pieces.

I can just drag it to resize, and I actually type in as much JavaScript as I want over here on this side. I could type several lines. When I'm done, I come down and click the Run button at the bottom and we pop up that message. On the left-hand side, we'll see kind of a mirror of anything that we've typed and any diagnostic messages that it may have given us. We'll make more use of this left-hand side of the panel later on. Now this is not by any means any kind of major development environment, and it's not even going to prompt you to save anything.

So for anything more than a few lines, I'm going to use a full editor. But for us, experimenting and learning basic JavaScript syntax, it can come in very handy to just play around with writing code.

There are currently no FAQs about JavaScript Essential Training.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed JavaScript Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.