html
html
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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script src="https://cdn.jsdelivr.net/gh/arnav-kr/Shikijs/dist/V1.2.1/shikiHighlighter.min.js"></script>
</head>
<body>
<script>window.print=console.log;console.log=()=>{}</script>
<div class="shiki-target" data-language="js" data-theme="github-dark">class Cat{
constructor(breed, color, height, cuteness){
this.breed = breed;
this.color = color || "orange";
this.height = height;
this.cuteness = cuteness;
}
talk(){
console.log("Meow Meow! My color is " + this.color + " My height is " + this.height + "cms from " + this.bread + "i am " this.cuteness);
}
walk(){
console.log("Cat is Walking!")
}
sleep(){
console.log("I am sleeping! zzz")
}
}
var cat = new Cat("felis", "white", 55, "cute");
cat.talk();
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
document.addEventListener('DOMContentLoaded', () => {
Shiki.highlightAll();
});
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run