Hi everyone! This is my first day coding ever, and I have chosen this app to start with! The question I am about to ask and the things I'm about to show you are very basic, so please bare with me.
So I am starting out with making a simple program to be able to take a poll. After doing research I found that to give UI things to do you must give them an action. With the segment bar there is no option to add a action, so I was wondering how I would add one for it. If it helps, here is my code. Thank you all in advance!
console.alert('Segment 1 Has been selected and accepted!')
console.alert('Segment 2 Has been selected and accepted!')