Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JS-snippetsNew to Visual Studio Code? Get it now.
JS-snippets

JS-snippets

goacmola

|
474 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippets

JavaScript


Snippet Description
fun Creating function without a name
afp Creating arrow function without a name
asf Creating async function without a name
aafp Creating async arrow function without a name
fn Creating function with name
afn Creating arrow with name
asfn Creating async function with name
aafn Creating async arrow function with name
fc Creating a function constructor
for Creating normal for loop
fi Creating for-in loop
fo Creating for-of loop
fao Creating for-await-of loop
fe Creating for each for an array
wt Creating while true loop
wh Creating while loop
dw Creating do-while loop
vb Creating variable (let, var, const)
vv Creating variable without value (let, var)
cla Creating class
con Creating class constructor
cg Creating class get method
cs Creating class set method
clf Creating class function
f* Creating function*
st Creating setTimeout
si Creating setInterval
if Creating if
el Creating else
ie Creating if else
ei Creating else if
cl Creating console.log()
arrmth Showing the array methods
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft