I am running this task to teach my brother, he is asked to create a Javascript simple program to validate this data
[
{code: ‘10001’, amount: ‘’},
{code: ‘10002’, amount: ’50.00’},
{code: ‘’, amount: ’60.00’},
]
I need to show the errors that if there is an amount, code shouldn't be empty.