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

Function assignment of JavaScript #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

raushan3737
Copy link
Owner

@raushan3737 raushan3737 commented Mar 1, 2023

Adding assignments related to JavaScript

  • Problems:
  • Q1. Write a program to demonstrate how a function can be passed as a parameter to another function.
  • Q2. An arrow function takes two arguments firstName and lastName and returns a 2 letter string that represents the first letter of both the arguments. For the arguments Roger and Waters, the function returns ‘RW’. Write this function.
    Submit the github link to the code

@raushan3737 raushan3737 requested a review from arifa11111 March 1, 2023 07:29
const returnGreetText = greetFun();

// Using the returned value of greet() fun inside the another function i.e. greetUser()
console.warn(`${returnGreetText}` , userName) ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use console.log

@raushan3737 raushan3737 requested a review from arifa11111 March 1, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants