← All flashcard decks Study now
beginner📚 5 cards
JavaScript Basics
Core JS: console.log, let/const, functions, arrays
01
Difference between let and const?
let: can reassign. const: cannot reassign
02
What does console.log() do?
Prints to browser developer console
03
What is an arrow function?
Compact syntax: const add = (a, b) => a + b
04
What does .map() do?
Creates new array by transforming each element
05
What does .filter() do?
Creates new array with only elements that pass a test
Ready to study?
Open the flashcards directory