JavaScript is fun!

Post Statistics

This post has 443 words.
This post has 3063 characters.
This post reading time is approximately 2 minute(s)

So why IS JavaScript fun? First of all, it is powerful. Some may say simple, but I don’t think it is any longer. It is no longer the javaScript of 1995, when Brendan Eich created it in 10 days. It is no longer the JavaScript of 2009. It even is no longer the (modern) JavaScript of 2015, when everything changed.

I love all things media, and I come from that. That’s what makes JavaScript fun for me.

I can build cool illustrations with 2D or 3D HTML5 canvas.

I can create audio in the browser. Not only to create players, but the sounds themselves with the HTML5 Web Audio API.

I can do video streaming using Node.js (which is JavaScript).

I can create games using HTML5 2D canvas.

I can create image sliders. I can transform text to speech, and speech to text.

I can use the Geolocation API to discover someone’s location by longitude and latitude, and the list goes on! But before one can delve in so deeply, one has to learn the basics! So let’s take a stab at it together right now!

Maria D. Campbell

Maria teaches all things JavaScript, but she is also passionate about all things Git and Command Line. She feels it important that students should become better acquainted with their operating…

Maria D. Campbell teaches: Back End Development, Command Line, CSS3, Front End Development, Full Stack JavaScript, Git, HTML5, macOS, Modern JavaScript, Node.js .

Learn more about Maria D. Campbell »

Lobortis elementum nibh tellus molestie. Pretium lectus quam id leo in. Vitae congue mauris rhoncus aenean vel. Tortor consequat id porta nibh. Sed blandit libero volutpat sed cras ornare. Neque laoreet suspendisse interdum consectetur libero id faucibus nisl tincidunt. Est ullamcorper eget nulla facilisi etiam dignissim diam. Quis vel eros donec ac odio tempor orci dapibus. Aliquam purus sit amet luctus. Sit amet justo donec enim diam vulputate ut. Senectus et netus et malesuada fames. Non nisi est sit amet facilisis magna.

const sentence = `JavaScript is fun!`;
console.log(sentence);

{"question":"So what is the result of console.log(sentence)?","answers":["sentence","JavaScript is Fun!","null"],"correctAnswer":1,"bgColor":"#caa5e6"}

{"question":"What is an array in JavaScript?","answers":["A property","Syntax","An ordered list of values"],"correctAnswer":2,"bgColor":"#caa5e6"}

function concatenate(a, b) { 
    a = `Bring me some `; 
    b = `more water.`; 
    return a += b; 
} 
concatenate();

{"question":"What is the result of concatenate()?","answers":["ab","a b","a + b","Bring me some more water."],"correctAnswer":3,"bgColor":"#caa5e6"}

const divideNums = (a, b) => { 
    a = 43; 
    b = 26; 
    return (a / b).toFixed(2); 
} 
divideNums();

{"question":"What is the result of divideNums()?","answers":["22","NaN","69","17","1.65"],"correctAnswer":4,"bgColor":"#caa5e6"}