Skip to content

Finalizei o lab JS Data Types #609

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

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
28 changes: 27 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const s5 = "and";



const tongueTwister = s1 + " " + s2 + " " + s3 + " " + s4 + " " + s5 + " " + s3 + " " + s2 + " " + s1 + " " + s4;


console.log(tongueTwister);



/*******************************************
Iteration 1.2 | Camel Tail
Expand All @@ -25,6 +31,10 @@ const part2 = "script";


// Print the cameLtaiL-formatted string
const cameLtaiL = part1.slice(0, -1) + part1.slice(-1).toUpperCase() +
part2.slice(0, -1) + part2.slice(-1).toUpperCase();

console.log(cameLtaiL);



Expand All @@ -41,6 +51,11 @@ const billTotal = 84;



const tipAmount = billTotal * 0.15;

console.log(tipAmount);



/*******************************************
Iteration 2.2 | Generate Random Number
Expand All @@ -50,6 +65,9 @@ const billTotal = 84;


// Print the generated random number
const randomNumber = Math.floor(Math.random() * 10) + 1;

console.log(randomNumber);



Expand All @@ -73,4 +91,12 @@ const expression5 = !a || !b;

const expression6 = !(a || b);

const expression7 = a && a;
const expression7 = a && a;

console.log(expression1);
console.log(expression2);
console.log(expression3);
console.log(expression4);
console.log(expression5);
console.log(expression6);
console.log(expression7);