Answer:
Explanation:
The following code is written in Javascript as requested and creates a function that takes in the total credit card debt amount and the minimum monthly payment. Then it calculates the new balance at the end of the year after paying 12 monthly minimum payments. Finally, printing out the new balance to the console which can be seen in the attached picture below.
let brainly = (debt, minimum) => {
debt = debt - (minimum * 12);
console.log("Credit Card Balance after one year: $" + debt);
}
brainly(50000, 3400);