1<html>
2 <input type="text" value="Hello world"(Can be of your choice) id="myInput"(id is the name of the text, you can change it later)
3<button onclick="Hello()">Copy Text</button>
4
5<script>
6 function Hello() {
7 var copyText = document.getElementById('myInput')
8 copyText.select();
9 document.execCommand('copy')
10 console.log('Copied Text')
11}
12</script>
1#!/usr/bin/node
2
3function hammingDist(str1, str2)
4{
5 let i = 0, count = 0;
6 while (i < str1.length)
7 {
8 if (str1[i] != str2[i])
9 count++;
10 i++;
11 }
12 return count;
13}
14 var Name = "Aniket";
15 var Email = "aniket@something.com";
16 var Slackusername = "@Viny_joshi";
17 var Biostack = "Something";
18 var Twitter = "@viny-joshi";
19
20 console.log(Name +',' + Email +','+ Slackusername +','+ Biostack + ","+ Twitter+ ","+ hammingDist (Slackusername, Twitter));
1#!/usr/bin/node
2
3function hammingDist(str1, str2)
4{
5 let i = 0, count = 0;
6 while (i < str1.length)
7 {
8 if (str1[i] != str2[i])
9 count++;
10 i++;
11 }
12 return count;
13}
14 var Name = "Aniket";
15 var Email = "aabagate1120@gmail.com";
16 var Slackusername = "@Aniket";
17 var Biostack = "Vaccine Informatics";
18 var Twitter = "@Aniket";
19
20 console.log(Name +',' + Email +','+ Slackusername +','+ Biostack + ","+ Twitter+ ","+ hammingDist (Slackusername, Twitter));