The Fifth Argument

Published by Werdna in

Create a function (named fifth) that takes some arguments and returns the type of the fifth argument. In case the arguments were less than 5, return "Not enough arguments".

Examples

fifth("a", 2, 3, [1, 2, 3], "five") ➞ String

fifth() ➞ "Not enough arguments"

Notes

Don't get confused between zero-indexing and one-indexing.

Watch a quick demo on how Edabit works.