JavaScript Tip(s) of the Day
I used to give a “JavaScript tip of the day” at the beginning of every lecture. Students preferred that the lectures focused on course material. So I turned it into a single (long) video lecture…
Read more…Included is a a two part tutorial on doing Traditional Object-Oriented Programming in JavaScript, and some other thing useful for class.
I used to give a “JavaScript tip of the day” at the beginning of every lecture. Students preferred that the lectures focused on course material. So I turned it into a single (long) video lecture…
Read more…There is a tutorial on how to use the JavaScript Debugger in Visual Studio Code as a Workbook on GitHub. It is in the form of a workbook: you should clone it and work through it.
If you want something even simpler, you can try the debugger in Chrome. Here is a quick video on how to get started with the Chrome Debugger on Workbooks.
Read formatted page...The Functional Programming in JavaScript is a GitHub repository with a workbook you can clone. Or you can just read it on the web at this link.
Read formatted page...JavaScript does not require you to declare the types of your variables, function arguments, objects, object properties, or much of anything. However, if you give it some hints as to what you expect (as comments in your code), you can help a reader understand your program, and software tools find mistakes.
This page describes some programming practices that are recommended for CS559.
Read more…This tutorial was written for CS559 2020 by the course staff, and updated for 2021 and 2022.
Originally, JavaScript had some non-standard ways to do object-oriented programming. They were very cool, and very flexible - but they were non-standard and hard to learn
Fortunately, newer versions of JavaScript (like we use in class) give us another option that provides a convenient syntax for “traditional” (class/instance style) object oriented programming. JavaScript ES6 introduced classes to JavaScript, which use notation similar to what you may have seen in other object oriented languages. ES6 was from 2015, so its not like this is a new thing.
Read more…This is part 2 of our 2 part tutorial on “Traditional” Object Oriented programming in JavaScript. The tutorial was written by the course staff in 2020, but updated in 2021 and 2022.
In the first part of this tutorial (Traditional Object Oriented Programming in JavaScript (Part 1)), we showed you how to use JavaScript’s class syntax; this time, we’ll take a look at how we can use it to do the things you’re used to in object oriented programming: inheritance, polymorphism, and more.
Read more…