Skip to content

Instantly share code, notes, and snippets.

@v
Created October 23, 2016 19:25
Show Gist options
  • Save v/5467add1388906ff18161e36faa61bba to your computer and use it in GitHub Desktop.
Save v/5467add1388906ff18161e36faa61bba to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=5467add1388906ff18161e36faa61bba
<!DOCTYPE html>
<html>
<head>
<title>Review of Types in Javascript</title>
</head>
<body>
</body>
</html>
var c = Math.PI;
var s = "5";
var n = 751;
var b = true;
var a = "abc";
//write code below and fill out answers in google form.
//what type is c?
//what type is s?
//what type is n?
//what type is b?
//what type is c + n?
//what is c + n?
//what type is n + s?
//what is n + s?
//what type do you get when you add a string and a number?
//what result do you get when you add a string and a number?
//what type is s * 2?
//what type is a * 2?
//what is s * 2?
//what type do you get when you multiply a string by a number?
//what type is 18?
//what type is "18"?
//Is 18 > 9?
//Is "18" > 9?
//Is "18" > "9"? Explain in one line why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment