Merge 3596420115
into 09f408a1b7
commit
1fce797658
@ -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,21 @@
|
|||||||
|
const popUp = document.getElementById('popUp')
|
||||||
|
|
||||||
|
popUp.addEventListener('click', function() {
|
||||||
|
alert('Hello World')
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// Arrays
|
||||||
|
const names = Array('Gideon', 'Courage', 'Femi', 'Jude', 250, true, false, 'HTML', 'CSS', 'Python');
|
||||||
|
names[1] = 'Wife'
|
||||||
|
names[0] = 'Husband'
|
||||||
|
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