Skip to content

Instantly share code, notes, and snippets.

@cannelflow
Created April 19, 2016 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannelflow/f59bd630c1babf9cf98b75f8d9db8903 to your computer and use it in GitHub Desktop.
Save cannelflow/f59bd630c1babf9cf98b75f8d9db8903 to your computer and use it in GitHub Desktop.
// Declare second integer, double, and String variables.
var j=12;
var d1 = 4.0;
var s1 = "is the best place to learn and practice coding!"
// Read and save an integer, double, and String to your variables.
var a = i+j;
var b = (d+d1).toFixed(1);
var c = s+s1;
// Print the sum of both integer variables on a new line.
console.log(a);
// Print the sum of the double variables on a new line.
console.log(b);
// Concatenate and print the String variables on a new line
// The 's' variable above should be printed first.
console.log(c);
@shafaq
Copy link

shafaq commented Apr 19, 2016

Are you reading from the input or just hardcoding values??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment