I am still aiming to create a calendar by combining HTML and CSS.
var firstName = 'myname';
var age = 32;
console.log(firstName + '' + ' is' + age);
var job, is front engineer;
job = 'driver';
is front engineer = false;
console.log(firstNa me + 'is a ' + age + ' year old ' + job +'.Is I front engineer? ' + is front engineer);
// Variable mutation
age = 'thirty two';
job ='office worker';
alert(firstName + 'is a ' + age + ' year old ' + job +'.Is I front engineer? ' + is front engineer);
var lastName = prompt('What is my last name?');
console.log(firstName + ' ' +lastName);
You can click the alert message and enter lastName for prompt.
var seireki=0;
var heisei=0;
for( seireki=1989; seireki<=2017; seireki++)
{
Console.log("Year" + seireki + "Year");
heisei = seireki - 1988;
Console.log("Heisei" + heisei + "Year");
The above code may give an error. Let's examine the For, loop code.
Solidify the basics of JavaScript and learn the code required to create a calendar.
Recommended Posts