javascript foundations

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

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

<head>
  <meta charset="UTF-8">
  <title>javascript foundations</title>
  
  
  
  
  
</head>

<body>

  
  
  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/marilynjwilliams/javascript-foundations-KWMvRP */
// write your code here
var x = 2;
var y = 2 * x;
print(y);

function square(x) {
  return x * x;
}

y = square(5);
print(y);

print(square(4));

Comments