A Pen by Angie Changpagne on CodePen.
Created
October 25, 2018 14:50
-
-
Save themulanfiles/25ed8586167e2f9d24fc7c08ff6d5442 to your computer and use it in GitHub Desktop.
loggingLetters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="loggingLetters.js"></script> | |
</head> | |
<body bgcolor="lavender"> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sentence = "I love robot fashion shows"; | |
document.write(sentence); | |
var gwagon=prompt("enter a number"); | |
console.log(typeof(gwagon)); | |
/* | |
for (var i=0; i < sentence.length; i++) { | |
if(sentence[i] !== " "){ | |
console.log(sentence[i]); | |
} | |
} | |
var n=25; | |
var temp=0; | |
if(n%2==0) | |
{ | |
temp+=10; | |
console.log(temp); | |
} | |
else | |
{temp/=n; | |
console.log(temp); | |
} | |
console.log(temp); */ | |
/*var n=prompt("enter any positive number");*/ | |
function triangulate(var n) | |
{ | |
confirm("You must enter a true number, NO BS, Agree?"); | |
/*while(n<0 || typeof(n)!=number) | |
{n=prompt("must be a positive number...");} */ | |
if(n>0){ | |
for(var sum=0;sum<=n;sum++) | |
{ | |
console.log(sum); | |
} | |
} | |
else | |
{ | |
n=prompt("enter any positive number");} | |
} | |
/* | |
var password="gucci"; | |
var userPassword=prompt("enter password"); | |
if(password===userPassword) | |
{ | |
console.log("success"); | |
} | |
else | |
{ | |
console.log("no party or for you"); | |
} | |
*/ | |
alert("you are not worthy, you are human"); | |
this.triangulate(prompt("enter a positive number")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment