Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is my homework from the second day about JS! #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions homework.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
part 1
var numCh = 3;
undefined
var partNum = "C";
undefined
var gLoc = "Amstrdam";
undefined
var jobT = "Civil Engineer";
undefined
var future = "you will be a"+ jobT+ "in" + gLoc + "marriad to" + partNum + "N kids"+numCh
undefined
future
"you will be aCivil EngineerinAmstrdammarriad toCN kids3"

part 2
var currentYear = 2019;
undefined
var birthYear = 1985;
undefined
var age = currentYear - birthYear;
undefined
console.log ("they are either"+ age+ " or " + (age -1));
they are either 34 or 33

part 3
var myAge = 33;

var maxAge = 90;

var dailyAmount = 2;

var lifeAmount = ( (maxAge -myAge) * 2 * 365);

var myNeed = " i will need" + lifeAmount " to last me until the ripe old age of" + maxAge;
console.log(myNeed);

part 5
var celsius = 30;

var conFahren = celsius *9/5+32;

var conFahren = celsius *9/5+32;

console.log(celsius +"°C" + conFahren +"°F");
30°C86°F