- Iteration 1:
- Variable: input = "<html>"
- Output: "<html>"
- Iteration 2:
- Variable: input = "<script>"
- Output: "<script>"
- Iteration 3:
- Variable: input = "<p>"
- Output: "<p>"
- Iteration 4:
- Variable: input = "<a href='https://www.example.com'>Click here</a>"
- Output: "<a href='https://www.example.com'>Click here</a>"
- Iteration 5:
- Variable: input = "<body>"
- Output: "<body>"
Leon is begugging a program by writing down on a piece of paper what the valiue of the variable is and what the output is for each iteration for a loop
HTML encoder
interpreter
console
trace table
1 answer