• 2022-06-01
    Read the following JavaScript code: function f(y) { var x=y*y; return x; } for(x=0;x< 5;x++) { y=f(x); document.writeln(y); } The output is ( ).
    A: 01 2 3 4
    B: 0 1 4 9 16
    C: 0 1 4 9 16 25
    D: None of the above answers are correct