Search posts, tags, users, and pages
Write a function to find the smallest elements among three arguments. (You cannot use sorting methods.) Solution function solution(a, b, c){ /* 1. Declare a variable to store minimum element while comparing argumen...
Rey Jang
@ReyJang
Markdown supported · ⌘↵ to post
Marcelo Zárate
Simple, effective and to the point. Maybe add some kind of validation for the next time? :D
Hi thanks for your comment!! I'm fairly new to Javascript and the programming itself so I'm not sure what the validation means here🥺 Do you mean it'd be better if I checked whether the inputs are acceptable first or something like that?
Rey Jang Exactly. Just to make it more interesting and less error prone. We all have been new to everything. Keep it up!
Marcelo Zárate Ah I see! I'll try to think about that next time. Thank you!!:D
Marcelo Zárate
Simple, effective and to the point. Maybe add some kind of validation for the next time? :D