Code

General Code

Functions

When you write JavaScript applications, you will write a lot of functions. Functions in JavaScript are like methods in C#. You will learn various ways to write JavaScript functions. Here is one of the more common ways… The aforementioned code does not run the function. It simply declares it. As in writing functions, there are […]

Functions Read More »

Conditional Statements

Just like in C#, JavaScript utilizes conditional, control-flow statements. One of the most common is the IF statement. IF statements evaluate Boolean statements…greater than, less than, etc. Equal/Not equal is another evaluation statement. In JavaScript, there are two ways to work with equal/not equal. You can utilize two or three equal signs. Two equal signs

Conditional Statements Read More »

Array Methods & Properties

Splice Splice allows us to remove items based upon their index position and can remove multiple items. If we run the following code with our baseball array… The console will report ‘Aaron’, ‘Ruth’, ‘Uecker’ because we asked the splice operation to start at index position 2, which was ‘Wagner’ and to remove 1 item. We

Array Methods & Properties Read More »