I hereby claim:
- I am alexbannon on github.
- I am alexbannon (https://keybase.io/alexbannon) on keybase.
- I have a public key ASC45u92lGHBXChqC_OlorE423Zrn1jnXJrvkSyyRSJyNQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var numberOfRows = prompt("How many rows?"); | |
var userCharacterChoice = prompt("What character do you want to make a pyramid with?"); | |
while(userCharacterChoice === "$") { | |
userCharacterChoice = prompt("Sorry, you cannot choose $. Please choose any other character."); | |
} | |
var placeholderCharacter = " "; | |
var spaceOutputLine = []; | |
var counter = 0; | |
//rows is 5 | |
while(counter < numberOfRows) { |
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Take the money and run</title> | |
<style> | |
body{ | |
text-align: center; | |
} | |
</style> | |
</head> |
// What is the return value of the below code sample? Provide a sentence or two of explanation. | |
typeof( 15 ); | |
/* returns 'number'. typeof() is a builtin function that returns which type of primitive datatype the parameter is. */ | |
// What is the return value of the below code sample? Provide a sentence or two of explanation. | |
typeof( "hello" ); | |
/* returns 'string' for the same reason as number.*/ | |
// What is the return value of the below code sample? Provide a sentence or two of explanation. | |
typeof( [ "dog", "cat", "horse" ] ); |