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

4 out of 5 ;( #22

Open
wants to merge 2 commits 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
34 changes: 34 additions & 0 deletions homework1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
1-
var numOfChildren = 2;
var partnerName = "Sara";
var geoLocation = "Riydh";
var jobTitle = "Web Developer";

console.log("You will be a "+ jobTitle + " in " + geoLocation + " and married to " + partnerName + " with " + numOfChildren + " kids ");

2- I faced an issue with this one *
var currentYear = 2019;
var birthYear = 1995;

var age = currentYear - birthYear;
undefined
console.log("they are " + age);


3- :

var myAge = 24 ;
var maxAge = 40 ;
var snackPerYear = 2 * 365;
var totalSnacks =( maxAge - myAge ) * snackPerYear;

console.log("You will need " + totalSnacks + " to last you until the ripe old age of " + maxAge);


5 :

var tempinCelsius = 20°;
var tempinFahrenheit= tempinCelsius * 1.8 + 32;

console.log( tempinFahrenheit + " is " + tempinCelsius );