Javascript 4

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

Thumbnail
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 Codepen.io
Copyright 210296 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Javascript 4</title>
  
  
  
  
  
</head>

<body>

  
  
  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/210296/javascript-4-jqYGoG */
function hkis(){
  var q1 = prompt("What is 2+2?");
  if(q1=== "4"){
    alert("You're right!");
    var q2 = prompt("what is 3+3?");
    if(q2=== "6")
}
    }
  else{
    
  }

Comments