Ask your own question, for FREE!
Computer Science 50 Online
curriful:

For this exercise, I need to define and call the function printBusinessCard(). When called, this function should print out my name, job title (anything really), email address, and a tagline! ((I couldn't gind a 'Coding' subject for this..))

Aratox:

Yeah, coding goes under the "Computer Science" subject. Lemme see if I can solve your dillemma...

curriful:

@aratox wrote:
Yeah, coding goes under the "Computer Science" subject. Lemme see if I can solve your dillemma...
Okay, good.. thanks btw.

Aratox:

``` def printBusinessCard(): name = "your_name" job_title = "jobtitle" email = "email@example.com" tagline = "tagline" print("


") print(f"Name: {name}") print(f"Job Title: {job_title}") print(f"Email: {email}") print(f"Tagline: {tagline}") print("
") # Business card function call printBusinessCard() ```

Aratox:

You ARE using Python, correct?

curriful:

no.. its javascript

Aratox:

@curriful wrote:
no.. its javascript
Oh, I'm sorry, I'll repurpose this code to fit your needs.

curriful:

@aratox wrote:
@curriful wrote:
no.. its javascript
Oh, I'm sorry, I'll repurpose this code to fit your needs.
Thanks!

Aratox:

``` function printBusinessCard() { let name = "yourname"; let jobTitle = "jobtitle"; let email = "email@example.com"; let tagline = "tagline"; console.log("


"); console.log("Name: " + name); console.log("Job Title: " + jobTitle); console.log("Email: " + email); console.log("Tagline: " + tagline); console.log("
"); } // Business card call function printBusinessCard(); ```

curriful:

Thanks!

Aratox:

@curriful wrote:
Thanks!
No problem, happy to help.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!