Started Day 1

pull/373/head
Gideon Buba 2 years ago
parent 8b41cd49c3
commit af2b00e570

BIN
.DS_Store vendored

Binary file not shown.

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Day 1</title>
</head>
<body>
<h1>Day 1</h1>
<button id="popUp">Click Me</button>
<script src="introduction.js"></script>
</body>
</html>

@ -0,0 +1,20 @@
const popUp = document.getElementById('popUp')
popUp.addEventListener('click', function() {
alert('Hello World')
})
// Arrays
const names = Array('Gideon', 'Courage', 'Femi', 'Jude', 250, true, false);
names[1] = 'Wife'
let firtsName = names[0];
const strings = " 'Gideon', 'Courage', 'Mufasa' "
const splitstrings = strings.split('')
console.log(names);
console.log(firtsName);
console.log(names.length);
console.log(splitstrings);
//
Loading…
Cancel
Save