Skip to main content

modern-javascript-patterns

Covers modern JavaScript (ES6+) features and patterns for writing clean, efficient code, ideal for refactoring and optimizing applications.

Install this skill

or
34/100

Security score

The modern-javascript-patterns skill was audited on Mar 8, 2026 and we found 14 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 115

Template literal with variable interpolation in command context

SourceSKILL.md
115console.log(`Hello ${name}, you are ${age}`);
medium line 188

Template literal with variable interpolation in command context

SourceSKILL.md
188return `${greeting} ${names.join(", ")}`;
medium line 204

Template literal with variable interpolation in command context

SourceSKILL.md
204const greeting = `Hello, ${name}!`;
medium line 207

Template literal with variable interpolation in command context

SourceSKILL.md
207const html = `
medium line 216

Template literal with variable interpolation in command context

SourceSKILL.md
216const total = `Total: $${(price * 1.2).toFixed(2)}`;
medium line 222

Template literal with variable interpolation in command context

SourceSKILL.md
222return result + str + `<mark>${value}</mark>`;
medium line 228

Template literal with variable interpolation in command context

SourceSKILL.md
228const html = highlight`Name: ${name}, Age: ${age}`;
medium line 256

Template literal with variable interpolation in command context

SourceSKILL.md
256[`get${field.charAt(0).toUpperCase()}${field.slice(1)}`]() {
medium line 348

Template literal with variable interpolation in command context

SourceSKILL.md
348const response = await fetch(`/api/users/${id}`);
medium line 678

Template literal with variable interpolation in command context

SourceSKILL.md
678return `Hello, ${this.name}`;
medium line 683

Template literal with variable interpolation in command context

SourceSKILL.md
683return `hashed_${password}`;
medium line 710

Template literal with variable interpolation in command context

SourceSKILL.md
710return `${super.greet()}, I'm an admin`;
medium line 806

Template literal with variable interpolation in command context

SourceSKILL.md
806const response = await fetch(`${url}?page=${page}`);
low line 396

Fetch to external URL

SourceSKILL.md
396const config = await fetch("/config.json").then((r) => r.json());
Scanned on Mar 8, 2026
View Security Dashboard