Every registration supports local education. TrainUp Gives Back
Logo

Your Career Training Marketplace

Questions? Call Toll-Free: 1-866-540-9677

  • Instant Access ImageInstant Access
    From Anywhere
  • Unlimited Viewing ImageUnlimited
    Viewing
  • calendar Image 6-12 Months
    To Complete

Description

Defensive programming is a methodology for writing code that is not prone to present or future errors potentially caused by unexpected user inputs or actions. In this course, you will explore the fundamentals of defensive programming for JavaScript and HTML5. This includes defensive techniques for HTML5 and JavaScript, as well as using inspections and testing, input validation, how to properly use variables and statements in JavaScript and HTML5. Lastly, you'll explore best practices for working with errors in HTML5 and JavaScript.

Learning Objectives
  • Start the course
  • Describe the potential risks faced by software applications
  • Identify the key reasons why risks are a recurring issue
  • Recognize the key features of defensive coding
  • List some key approaches to preventing problems during the planning stage
  • Recognize the correct way to use, or not use, the escape function
  • Identify the key features of a strong Cross-Origin Resource Sharing Policy
  • Use event handlers to account for and prevent untrusted data
  • Utilize secure Web storage in JavaScript and HTML5
  • Utilize secure web messaging in JavaScript and HTML5
  • Identify the key features and benefits of testing
  • Describe the benefits of testing your code for multiple browsers
  • Recognize how to write testable code in JavaScript and HTML5
  • Recognize how to perform tests using Visual Studio for JavaScript and HTML5
  • Create examples of defensible methods in JavaScript and HTML5
  • Identify the techniques for applying defensive techniques for method parameters and return values in JavaScript and HTML5 methods
  • Recognize how to implement variable declarations for defendable code
  • Identify how to use null values in creating defendable code
  • Identify how to use if and switch statements in creating defendable code
  • Identify error-handling techniques to promote defensive coding
  • Demonstrate how to use exceptions to handle errors
  • Create a JavaScript and HTML5 application that incorporates error codes and messages into its error handling
  • Recognize how to use error processing and global objects
  • Identify how to handle errors locally in JavaScript and HTML5 code
  • Recognize how to anticipate potential errors in JavaScript and HTML5 code
  • Use defensive coding techniques to create clean testable methods
  • Audience

Get the latest industry news, recommended courses, & promotions from TrainUp.com sent straight to your inbox.