JavaScript Flashcards

1
Q

What is a technique for getting a numerical value into USD format?

A

Intl.NumberFormat()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Assume there is an event listener which triggers the following function. What problem(s) will occur?

let myFunction = () => {
console.log( $(this) )
{

A

Arrow functions do not play nice with $(this).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly