-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (56 loc) · 2.67 KB
/
Copy pathindex.html
File metadata and controls
58 lines (56 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="js/bib.js"></script>
<script src="js/script.js"></script>
</head>
<header id="main-header">
<h1>JavaScript Function Expression</h1>
</header>
<body>
<article class="col-8">
<h1>Description</h1>
<p>The <b>function</b> keyword can be used to define a function inside an expression.</p>
<p>A function expression is very similar to and has almost the same syntax as a function
statement. The main difference between a function
expression and a function statement is the function name, which can be omitted in
function expressions to create anonymous functions. A function expression can
be used as a IIFE (Immediately Invoked Function Expression) which runs
as soon as it is defined.</p>
</article>
<div class="col-8">
<section class="toggleBox">
<header class="toggleHeader"><h1>Section 1</h1>
</header>
<div class="toggleContent">
<p>Bacon ipsum dolor amet cow pork chop corned beef jowl kielbasa, pastrami
t-bone meatball hamburger meatloaf turkey venison. Rump tri-tip boudin
pastrami. Pastrami chuck salami cow, fatback flank t-bone kielbasa ribeye
pancetta short ribs.</p>
</div>
</section>
<section class="toggleBox">
<header class="toggleHeader"><h1>Section 2</h1></header>
<div class="toggleContent">
<p>Beef picanha tenderloin doner. Doner short loin tenderloin pig frankfurter,
spare ribs pork chop cupim pastrami brisket. Pastrami pancetta flank drumstick
shankle kielbasa salami capicola t-bone beef ribs ball tip biltong.</p>
</div>
</section>
<section class="toggleBox">
<header class="toggleHeader"><h1>Section 3</h1></header>
<div class="toggleContent">
<p>Short loin jerky salami spare ribs, doner tail kielbasa brisket biltong ham
hock pig ribeye buffalo kevin. Frankfurter spare ribs pancetta jowl.</p>
</div>
</section>
</div>
<article class="col-8">
<p>This accordion is created with function expression</p>
</article>
<footer></footer>
</body>
</html>