Slide 1

Slide 1 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...}

Slide 2

Slide 2 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...}

Slide 3

Slide 3 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Employee:new this name “John” salary 5000 sales 5 Object

Slide 4

Slide 4 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Employee:new this name “John” salary 5000 sales 5 Object name “John” salary undefined sales undefined bonus undefined

Slide 5

Slide 5 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Employee:new this name “John” salary 5000 sales 5 Object name “John” salary 5000 sales undefined bonus undefined

Slide 6

Slide 6 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Employee:new this name “John” salary 5000 sales 5 return Object name “John” salary 5000 sales 5 bonus undefined

Slide 7

Slide 7 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined

Slide 8

Slide 8 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage undefined bonus undefined

Slide 9

Slide 9 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage undefined bonus undefined getBonusPercentage salary 5000 percentage undefined

Slide 10

Slide 10 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage undefined bonus undefined getBonusPercentage salary 5000 percentage 500

Slide 11

Slide 11 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage undefined bonus undefined getBonusPercentage salary 5000 percentage 500 return 500

Slide 12

Slide 12 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500 bonus undefined

Slide 13

Slide 13 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500 bonus 2500

Slide 14

Slide 14 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus undefined findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500 bonus 2500 return 2500

Slide 15

Slide 15 text

V8 Memory usage Heap memory Stack memory Global frame getBonusPercentage findEmployeeBonus Employee BONUS_PERCENTAGE 10 john Function getBonusPercentage(...) {...} Function findEmployeeBonus(...) {...} Class Employee {...} Object name “John” salary 5000 sales 5 bonus 2500