JavaScript Intermediate

JavaScript is a versatile programming language. In fact, JavaScript is paired with HTML and CSS to make a web application responsive. Most programmers use JavaScript to make Applications using frameworks such as ReactJS and NextJS to make modern Web Applications, React Native to make Native mobile applications, Electron to make Desktop applications and ExpressJS to make server-based applications.

JavaScript, like other syntax programming languages, has functions, arrays, classes, and selection statements. In previous campaigns, you may have learned about creating functions, hoisting, and using APIs with JavaScript.

In this section, we are going to expand our knowledge base in our JavaScript Intermediate course as we learn more about using Classes, Switch Statements, and Try Catch blocks. You may think of Classes as a Superset of a function whereby a Class can contain private variables and functions. The functions within a class are called methods. Switch Statements are like selection statements but with different use cases. Lastly, Try-Catch-Finally statements are utilized for error catching and handling. By doing proper error handling, we can ensure that our end-users will get the best experience out of our product. These are the essential syntax that will lead us on the road to a JavaScript Wizard!

Learning Outcomes

By the end of this section, you will be able to:

 - Build a Web Application with Switch Statement to find a basic statistic given a list of numbers

 - Apply JavaScript array functions

 - Calculate the Fibonacci sequence

 - Apply the Try-Catch-Finally Statements for error Handling

Switch Statements

Switch

Try-Catch-Finally Statements

Try-Catch-Finally more