Skip to content
Advertisement

How To Reference a Variable Inside The Same Array

JavaScript

How can I get the value of 'tax' and use it inside 'total'?

Advertisement

Answer

Not the way you are trying to do it. You have about three options:

JavaScript

Or:

JavaScript

Or:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement