INM220-SAA-Lab1

In this example below you will see how to do a INM220-SAA-Lab1 with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by ptle3, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ptle3 ©
  • HTML
  • CSS
  • JavaScript
    <html>
  <head>
  </head>
  
  <body>
    <h1>My first page!</h1>
  </body>
</html>

/*Downloaded from https://www.codeseek.co/ptle3/inm220-saa-lab1-KazEBq */
    


/*Downloaded from https://www.codeseek.co/ptle3/inm220-saa-lab1-KazEBq */
    /* 
///DATA AREA
var loggedIn=true;//BOOLEAN
var age=30;//NUMBER
var email="tim@bot.com";//STRING
var sex="male";
var account=500;


///DATA MODELLING
var coffeeCount=1;
var coffeeDescription="Double-Double";
var deadLine="ASAP";

var server="Bruna";
var serverAccount=2;


///MAKING AN ARRAY
var coffeeOrders=["Double-Double","Black","Double-Double"]; 
console.log(coffeeOrders);
console.log(coffeeOrders[0]);
console.log(coffeeOrders[1]);
console.log("You ordered this many coffees: "+coffeeOrders.length);


//NULL
//UNDEFINED
*/

var petSpecies="Gerbil";
var petColor="Brown";
var lifeExpectancy=2;
///MAKING AN OBJECT
var petSize={
  "weight": ".2lbs",
  "length": "4 inches",
  "taillength": "2cm",
}
console.log("Your pet weighs "+petSize.weight);
console.log("Your pet's length is "+petSize.length);
console.log("Your pet's tail length is "+petSize.taillength) 

Comments