JavaScript Practice 2

In this example below you will see how to do a JavaScript Practice 2 with some HTML / CSS and Javascript

This awesome code was written by 210296, you can see more from this user in the personal repository.
You can find the original code on
Copyright 210296 ©
  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>JavaScript Practice 2</title>
      <link rel="stylesheet" href="css/style.css">



  <button onclick="lol()">Click here to begin!</button> 

<button onclick="uhhh()">This is going to be harder than I thought</button>

<button onclick="yay()">It's getting better</button>

    <script  src="js/index.js"></script>



/*Downloaded from */

/*Downloaded from */
var x = "This is a variable";
var y= 12;
function funky(){
var name = prompt("Hello, what is your name?");
  alert("Hello," + name+ "thanks for playing");
  var first= prompt("What's the first number?");
  var second= prompt("What is the second number?");

function uhhh(){
  var help = prompt("I'm like totes confused, please help?")
  alert("Thanks" + help);

function yay(){
  var haha = prompt("I like totes think this is getting better...")

function lol() {
  var name = prompt("What is your name?");
  if(name === "Will"){
    alert("Hi, bro!");
    alert("You ain't Will!!!")

function test(){
  var points = 0;
  var name = prompt("What is your name?");
  if(name === "Mr. Lea"){
    var points = points + 1;
  alert("Welcome"+ name)
  alert("You have"+ points +"point(s)");
}//this is where your if statement ends
  alert("This is hard");
  function other(){ 
    var points = 0;
}//this is where the else ends
}//this is where your functions