Programming Exercises

Build a component that takes two hardcoded props, firstName and lastName, and displays the full name.

Easy

Problem Statement

Build a component that takes two hardcoded props, firstName and lastName, and displays the full name.

Sample Input

firstName = 'John', lastName = 'Doe'

Sample Output

Full Name: John Doe

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
import React from "react"; const FullName = (props) => { // Use props to display the full name }; export default FullName;
Log in or sign up to run or submit your code.Log inSign up
Input
firstName = 'John', lastName = 'Doe'
Expected Output
Full Name: John Doe