-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
67 lines (59 loc) · 3.53 KB
/
app.js
File metadata and controls
67 lines (59 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
let firstName = "Matthew";
let middleName = "Allen";
let lastName = "Campbell";
let fullName = firstName + " " + middleName + " " + lastName;
let fullNameCaps = fullName.toUpperCase(); // Should modify string to ALL CAPS.
// Calls displayDescription() Function
displayDescription(fullNameCaps, "(Aspiring) Full Stack Developer / Photo Studio Associate", "I like pizza");
// Function that accepts x3 arguments (Name, Career, Description), formats accordingly and prints them to the Console.
function displayDescription(myName, myCareer, myDescription) {
console.log("Name: " + myName);
console.log("Career: " + myCareer);
console.log("Description: " + myDescription + ".");
}
// My Interests:
console.log("My Interests: ");
// Calls displayInterests() Function
displayInterests("Music"); // 1) Should print - Music
displayInterests("Space & Science"); // 2) Should print - Space & Science
displayInterests("Making Things & Woodworking"); // 3) Should print - Making Things & Woodworking
displayInterests("Arduino & Raspberry Pi"); // 4) Should print - Arduino & Raspberry Pi
displayInterests("Spending time with my lovely wife, Olivia and our cat, Toast"); // 5) Should print - Spending time with my lovely wife, Olivia and our cat, Toast
// Function that accepts x1 argument (Interest), formats accordingly and prints to the Console.
function displayInterests(myInterest) {
console.log("* " + myInterest);
}
// My Previous Experiences:
console.log("My Previous Experiences: ");
// Calls the displayPosition() Function
// 969 Creative
displayPosition("969 Creative", "Photo Studio Associate", "Provided quality images for Amazon.com by following standards and procedures of the Style Guide");
// Amazon
displayPosition("Amazon", "Fulfillment Center Associate", "Ensured all incoming product / inventory was stored correctly in the appropriate locations according to Standard Work");
// Radco Residential (Radius Mountain Creek)
displayPosition("Radco Residential (Radius Mountain Creek)", "Maintenance Technician", "Guaranteed excellent living conditions for all tenants by performing necessary repairs");
// Function that accepts x3 arguments (Company Name, Job Title and Job Description), formats accordingly and prints them to the Console.
function displayPosition(companyName, jobTitle, jobDescription) {
console.log("* " + companyName + ", " + jobTitle + " - " + jobDescription + ". ");
};
// My Skills:
console.log("My Skills: ");
// Calls dispaySkill() Function
displaySkill("Playing Drums", true); // 1) Should print - BAM: Playing Drums
displaySkill("HTML5", false); // 2) Should print - HTML5
displaySkill("CSS3", false); // 3) Should print - CSS3
displaySkill("Bootstrap 4.0", true); // 4) Should print - BAM: Bootstrap 4.0
displaySkill("JavaScript", true); // 5) Should print - BAM: JavaScript
displaySkill("Soldering", true); // 6) Should print - BAM: Soldering
displaySkill("Arduino Programming", true); // 7) Should print - BAM: Arduino Programming
displaySkill("Markdown", false); // 8) Should print - Markdown
displaySkill("Git / GitHub", false); // 9) Should print - Git / GitHub
displaySkill("Audio Engineering", true); // 10) Should print - BAM: Audio Engineering
// Function that accepts x2 arguments (Skill Name / Boolean Value), formats accordingly and prints them to the Console.
function displaySkill(mySkill, bamBam) {
if(bamBam == true) { // If (bamBam) true ...BAM: and 'mySkill'.
console.log("* BAM: " + mySkill);
} else if(bamBam == false) {
console.log("* " + mySkill); // Else If (bamBam) false ...just 'mySkill'.
};
}