JavaScript

Today, we’ll be discussing what parameters and returns are. You’ll learn how to make your functions more robust and flexible by learning these 2 simple concepts. Before we begin, get rid of your button as we won’t need it anymore. Clear out your script as well. Using Function Parameters Parameters allow you to pass in more information to your function. …

Functions are blocks of code that run when you call it. There are 2 kinds of functions. There are predefined functions which are functions that JavaScript has already created for you. We’ve seen an example of this with the alert() function. Functions take care most of the work and we can call them as many times as we want without …

When working with variables, you have to think about the data types you want. While you don’t have to define the data types for any of your variables, it’s always good to know what data type your variable is. What are data types? In programming, all data you create can be categorized into what kind of data it is. Is …

Something you’ll find yourself using often are comments and variables. Knowing these 2 concepts is absolutely vital to JavaScript and programming in general. Before you get started, you must understand how statements work. Statements When your code is executed in the browser, any white space, indents, and new lines are all erased. While the browser doesn’t really care or need …

The first step for any project utilizing JavaScript would be including JavaScript in your web documents. This is relatively easy to do, but before we actually do anything, I would like to talk about organization. Organizing Your Files It’s important to be organized. Having all your scripts in one place allows you to manage your files easily and it prevents …

JavaScript powers millions of sites worldwide everyday. Even this site utilizes JavaScript. JavaScript allows interaction between the user and the browser. JavaScript can also be used outside of the web. Not many know this, but you can also use JavaScript for server side programming and for creating apps! If you’re looking for a JavaScript tutorial, then you found it! This …