var myAge = 31;
console.log(myAge);
var myAge = 31;
var myHeight = 169;
var myAgeHeight = myAge * myHeight;
console.log("MyAgeHeight = "+myAgeHeight);
bounusPoints+=50;
document.getElementById("output3-1").innerHTML="Output = "+bounusPoints;
bounusPoints-=75;
document.getElementById("output3-2").innerHTML="Output = "+bounusPoints;
bounusPoints+=50;
document.getElementById("output3-3").innerHTML="Output = "+bounusPoints;
var name="Steffy Jose";
var greeting="Hi, my name is "
myGreeting=greeting+name;
document.getElementById("output4").innerHTML="Output = "+myGreeting;
let lap1 = 34
let lap2 = 33
let lap3 = 36
function add(l1,l2,l3){
sum=l1+l2+l3;
document.getElementById("output5").innerHTML="Output = "+sum;
}
add(lap1,lap2,lap3);
var lapsCompleted = 0;
function incri(laps){
for(i=laps;i<3;i++){
document.getElementById("output6").innerHTML=i;
}
}
incri(lapsCompleted);
Output = 0
1
2
var firstname="Steffy";
var lastname="Jose"
fullname=firstname+" "+lastname;
document.getElementById("output7").innerHTML="Output = "+fullname;
let name = "Alex";
let greeting = "Hi there";
function stringConcat(n,g){
result = g+","+n+"!";
document.getElementById("output8").innerHTML="Output = "+result;
}
stringConcat(name,greeting);
var Mypoints = 3;
function add3points(m){
points=m+3;
return points;
}
function remove1point(p){
remove=p-1;
return remove;
}
add3points(Mypoints);
add3points(points);
add3points(points);
document.getElementById("output9-1").innerHTML="Output = "+points;
remove1point(points);
remove1point(remove);
document.getElementById("output9-2").innerHTML="Output = "+remove;