Skip to content

Commit f84ce0e

Browse files
authored
adding example
1 parent 9392dcc commit f84ce0e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,19 @@
2323
npm install functionality.js
2424
```
2525
- Or You Can Install it By CDN In Your HTML File
26+
2627
```html
27-
<script src="https://cdn.jsdelivr.net/npm/functionality.js@latest/dist/functionality.min.js"></script>
28+
<body>
29+
<h1></h1>
30+
<p></p>
31+
<script src="https://cdn.jsdelivr.net/npm/functionality.js@latest/dist/functionality.min.js"></script>
32+
<script>
33+
heading = document.querySelector("h1");
34+
number = document.querySelector("p");
35+
heading.innerText = functionality.capitalize("hello");
36+
number.innerText = functionality.randomNumber(1, 100);
37+
</script>
38+
</body>
2839
```
2940

3041
## Importing 🦐

0 commit comments

Comments
 (0)