parent
8b41cd49c3
commit
af2b00e570
@ -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…
Reference in new issue