JS-Methods Flashcards
1
Q
Why do we use console.log
A
easier to debug
2
Q
what is a method?
A
function which is a property of an object
3
Q
how do you remove last element from array
A
.pop
4
Q
how do you round a number down
A
math.round
5
Q
how do you generate a random number
A
math.random
6
Q
how do you delete an element
A
.splice
7
Q
how to append an element from an array
A
.push
8
Q
how to break up string into array
A
.split
9
Q
do string methods change original string?
A
no they do not, can console.log to see if they did
10
Q
Is return value useful in every situation
A
no
11
Q
3 letter acronym for research?
A
MDN