Skip to content

Instantly share code, notes, and snippets.

View K-Vishwak's full-sized avatar

Vishwak K-Vishwak

View GitHub Profile
<html>
<head>
<title>Image Slider</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<style>
body {
font-family: 'Courier New', Courier, monospace;
margin: 0;
padding: 0;
// Using normal functions.
class Point {
name= 'test';
constructor() {
}
getName() {
return this.name;
}
@K-Vishwak
K-Vishwak / card.html
Last active May 19, 2023 15:23
Sample Card
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
'use strict';
let public = 10;
console.log(public);
'use strict';
const obj = {
word: "first",
get test() {
return this.word.toUpperCase();
},
set test(x) {
this.word = x;
}
};
'use strict';
const obj = {
word: "first",
get test() {
return this.word.toUpperCase();
}
};
obj.test = 'test';
console.log(obj.test);
"use strict";
const obj = {};
Object.defineProperty(obj, "a", {value:10, writable:true});
obj.a = 20;
console.log(obj.a);
"use strict";
const obj = {};
Object.defineProperty(obj, "a", {value:10, writable:false});
obj.a = 20;
console.log(obj.a);
'use strict';
let a = '\010';
console.log(a);
'use strict';
delete Object.prototype;