Avatar

Level 7

Paul,

I think I might understand. Is this correct?

  • What is needed is a string
  • The way to build strings in javascript, uses the + operator
  • Surrounding the i with + operator and putting it in quotes, converts i to a string?

If my understanding is correct, then (and this is just me being curious) does [String(i)] also work?

I think this will help me with another part of this button problem that I have put aside. Ultimately, I want to also show the value k + 1 as the caption on the button, so the button caption changes with each click. If my understanding is correct. I should be able to implement that part, now, as well.

Please advise if I understand the problem correctly,

Thanks,

Stephen