parent
8b41cd49c3
commit
c110ea0dff
@ -0,0 +1,13 @@
|
||||
const countries = [
|
||||
'Albania',
|
||||
'Bolivia',
|
||||
'Canada',
|
||||
'Denmark',
|
||||
"Ethiopia",
|
||||
'Finland',
|
||||
'Germany',
|
||||
'Hungary',
|
||||
'Ireland',
|
||||
'Japan',
|
||||
'Kenya',
|
||||
]
|
@ -0,0 +1 @@
|
||||
console.log('Hello World!')
|
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>30DaysofScripts:Inline Script</title>
|
||||
</head>
|
||||
<body>
|
||||
<button onclick="alert('Welcome to 30DaysofJavaScript!')">Click Me</button>
|
||||
<script src="./countries.js"></script>
|
||||
<script src="./web_techs.js"></script>
|
||||
<script src="./main.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,13 @@
|
||||
console.log('Welcome!')
|
||||
|
||||
const array = Array()
|
||||
const eightXvalues = Array(8).fill('X')
|
||||
console.log(eightXvalues)
|
||||
|
||||
const fourYvalues = Array(4).fill('Y')
|
||||
fourYvalues.push('y')
|
||||
console.log(fourYvalues)
|
||||
console.log(fourYvalues.lastIndexOf('y'))
|
||||
|
||||
const concatArrays = eightXvalues.concat(fourYvalues)
|
||||
console.log(concatArrays)
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
||||
const webTechs = [
|
||||
'HTML',
|
||||
'CSS',
|
||||
'JavaScript',
|
||||
'React',
|
||||
'Redux',
|
||||
'Node',
|
||||
'MongoDB'
|
||||
]
|
Loading…
Reference in new issue