• + 17 comments

    Can somebody help me out? I can pass Test Case 0, but for some reason I can't seem to pass Test Case 1 using Javascript.

        // Declare second integer, double, and String variables.
    var i1;
    var d1;
    var s1;
        // Read and save an integer, double, and String to your variables.
    i1 = parseInt(readLine());
    d1 = parseInt(readLine());
    s1 = readLine();
        // Print the sum of both integer variables on a new line.
    console.log(i + i1);
        // Print the sum of the double variables on a new line.
    console.log((d + d1).toFixed(1));
        // Concatenate and print the String variables on a new line
        // The 's' variable above should be printed first.
    console.log(s + s1);