This file contains 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
alert("meli"); | |
document.write("meli"); | |
console.log("meli"); |
This file contains 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
//debugcode | |
alert("This program does not work! Help me!"); | |
document.write("<bold>Seize the day!</bold>"); | |
alert("What’s up doc?"); | |
document.write(" ","I can do this!"); |
This file contains 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
//welcome | |
document.write("Welcome to Melis awesome website") | |
alert("Warning") |
This file contains 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
// lovejavascript | |
document.write("I love JavaScript!") |
This file contains 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 answere = prompt("What is the meaning of Life?"," "); | |
document.write(answere); | |
// i just had too add this easter egg | |
if (answere = 42) { | |
alert("Did you bring a towel?") | |
}; |
This file contains 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 answere = prompt("What is the meaning of Life?"," "); | |
document.write(answere); | |
// had to add ester egg | |
if (answere = 42) { | |
alert("Did you bring a towel!"); | |
} |
This file contains 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
// JavaScript story | |
var story = "Once upon a time JavaScript was born."; | |
var storyStart = "false"; | |
var $twist = | |
"And a sudden twist in the story." + " " + "Bug is here"; | |
var debuggerMissing = true; | |
var ofStory = 20; |
This file contains 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
//guessNumberProgram A | |
var number = 3; | |
var numberGuess = prompt("Guess the Number!") | |
if (number == numberGuess) { | |
alert("Great, you guessed!"); | |
} else if (number != numberGuess) { | |
alert("Bummer, the correct number was 3"); | |
} |
This file contains 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 number = 3; | |
var numberGuess = prompt("Guess the Number!"); | |
if (number < numberGuess) { | |
alert("number is smaller"); | |
var numberGuess = prompt("Guess the Number!"); | |
} else if (number > numberGuess) { | |
alert("Number is bigger"); | |
var numberGuess = prompt("Guess the Number!"); | |
} if (number == numberGuess) { | |
alert("Great, you guessed!"); |
This file contains 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 nr1 = prompt("Write Nr1"); | |
var nr2 = prompt("Write Nr2"); | |
if (nr1 < nr2) { | |
alert(nr2); | |
} else if (nr1 > nr2 ){ | |
alert(nr1); | |
} |
OlderNewer