We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.vari1;vard1;vars1;// 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);
Day 1: Data Types
You are viewing a single comment's thread. Return to all 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.