Skip to content

From an array of marvel heroes, program function accepts array of names and returns hero with the longest name.

Notifications You must be signed in to change notification settings

labmandala/longest-string-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Longest String in an Array

Objective

Given an array of marvel heroes, write a function that accepts the array of names (strings).

The finished function returns the hero with the longest name.

The user should click the button to display the heroes name.

List of Heroes

[ "Ant-Man", "Black Panther", "Black Widow", "Captain America", "Doctor Strange", "Hawkeye", "Hulk", "Iron Man", "Luke Cage", "Moon Knight", "Ms. Marvel", "Scarlet Witch", "Spider-Man", "Thor", "Wasp" ]

marvel heroes

About

From an array of marvel heroes, program function accepts array of names and returns hero with the longest name.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published