Skip to content

Instantly share code, notes, and snippets.

View saravanakumarputta's full-sized avatar
🎧
<Coding/>

Saravana Kumar Putta Selvaraj saravanakumarputta

🎧
<Coding/>
  • Bolt | Freelancer | EX-ZOHO
  • Tallinn, Estonia
  • 23:38 (UTC +03:00)
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copy Text 2 Clipboard</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Share API</title>
<style>
</style>
@saravanakumarputta
saravanakumarputta / Queue.js
Last active June 12, 2020 15:17
Queue JS:DS blog
class Queue {
/*
Initialization
@parmas - size - Queue Size
storage - an array to store the items of the queue DS
currentQueueSize - to track the size of the queue
queueSize - application users can set the predefined size for the queue
*/
constructor(size) {
@saravanakumarputta
saravanakumarputta / Stack.js
Last active June 12, 2020 15:14
Stack DS:JS blog
class Stack {
/* Initialization */
constructor() {
this.storage = {};
this.stackLength = 0;
}
/* To get the stack size */
getStackSize() {
return this.stackLength;