87// fetch projects end
88
89// Start of Tawk.to Live Chat
90var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); 91 (function(){
92 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
93 s1.async=true;
32
33// Start of Tawk.to Live Chat
34
35var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();36 (function(){
37 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
38 s1.async=true;
70
71
72// Start of Tawk.to Live Chat
73var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); 74 (function(){
75 var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
76 s1.async=true;
52
53
54// <!-- typed js effect starts -->
55 var typed = new Typed(".typing-text", { 56 strings: ["Full-Stack development", "Machine Learning", "Cloud Computing", "Tech Communities"],
57 loop: true,
58 typeSpeed: 50,
1206 /* set color to svg element */
1207 var svgXml = pJS.tmp.source_svg,
1208 rgbHex = /#([0-9A-F]{3,6})/gi,
1209 coloredSvgXml = svgXml.replace(rgbHex, function (m, r, g, b) {1210 if(p.color.rgb){
1211 var color_value = 'rgba('+p.color.rgb.r+','+p.color.rgb.g+','+p.color.rgb.b+','+p.opacity+')';
1212 }else{
Found variables that are declared but not used anywhere.
NOTE: In browser applications, DeepSource recommends the use of ESModules over regular
text/javascript
scripts. Currently, we don't support variables that are not explicitly exported, and are injected into other scripts by being included in an HTML file
Unused variables are most often the result of incomplete refactoring. They can lead to confusing code and minor performance hitches.
NOTE: If you have intentionally left a variable unused, we suggest you to prefix the variable name with a _
to prevent them from being flagged by DeepSource.
// Write-only variables are not considered as used.
let y = 10;
y = 5;
// A variable that modifies only itself isn't considered used.
let z = 0;
z = z + 1;
// Unused argument
(function(x) {
return 5;
})();
// Unused recursive functions also raise this issue.
function fact(n) {
if (n < 2) return 1;
return n * fact(n - 1);
}
// When a function definition destructures an array,
// unused entries from the array also cause warnings.
function getY([x, y]) {
return y;
}
let x = 10;
alert(x);
((arg1) => {
return arg1;
})();
let myFunc;
myFunc = (n) => {
// this is legal
if (n < 0) myFunc();
};
// this is also considered legal
console.log(declaredLater);
var declaredLater;
// Only the second argument from the descructured array is used.
function getY([, y]) {
return y;
}