Learn to Code Special! | 30% off ALL ACCESS to One Month ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Hide

Setting up Your Development Environment

Getting Started ยท Lesson 5 ยท


For any task at hand, it helps to have the right tools for it. While you can code in a simple text editor, it is best to use an editor that is more suited for writing code. We use Sublime Text 3 in the course, but you can use any editor you prefer like Visual Studio Code, Atom, WebStorm, etc. We also recommend you install the Google Chrome Browser.

Download 

Steal This Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JavaScript</title>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<h1 id="mr-javascript">I'm Mr. JavaScript</h1>
<a href="#" id="buttonLink">Hey JavaScript, how ya feeling?</a>

<script>
var buttonLink = document.getElementById('buttonLink');
buttonLink.addEventListener('click',sayFeeling);

function sayFeeling() {

//alert("I'm so gooood!");
var name = document.getElementById('mr-javascript');
//console.log(name);
name.innerHTML = "Not good bah!";
}

// console.log(buttonLink);


</script>
</body>
</html>