Computer scienceProgramming languagesJavaScriptWorking with dataStrings

String transforming

introduction

Report a typo

Write a function that returns the speaker's name based on their introduction.

Sample Input 1:

Hello, I am Emma

Sample Output 1:

Emma

Sample Input 2:

Hello, I am Constantine

Sample Output 2:

Constantine
Write a program in JavaScript
function introduction(line) {
//write your code here
}
___

Create a free account to access the full topic