How to set javascript logic in a From

Hi Community
I wanted to work with Dropdowns and set some logics.
I’m trying to set this logic as an example:
I have two Dropdowns “select1” and “select2”
the “select1” dropdown has the following List {1,2,3,4,5}
I want to display in “select2” dropdown the numbers “1” and “2” in letter and a constant string for the rest of the numbers (3,4,5) like:
-if select1=“1” then select2=“one” and if select1=“2” then select2=“two”
-for the other numbers 3,4,5 I want to display a constant text “number” here I need a logic with Javascript or Json.
Please see the screenshots and find attached the xaml File.

Form_Test.xaml (9.9 KB)

Any Idea? how to do it?
Thanks in advance,
Best regards,

Form_Test.xaml (9.9 KB)
@ayyoub Please find the attachment.
Based on my understanding about your ask, I created it.
Please let me know if it works.
cc: @sang.lee