Hello, new here and desperately trying to sort my javascript out! I’m at uni, and have never worked with javascript before. I’m trying to write a mini program to basically write out a code from an array (which I’ve done) but then select a section of that code and assign it a name… for example…
the codes are all something like this, but with varying amounts of numbers and letters before the ” – “…
3JJS12-ABC/876JD887
I need the javascript to select the ABC bit, determine whether or not it has A as its first letter and C as its last (there are always only 3 letters in that section of the code) then write out a name for it, such as code 1… I need to do this several times for different codes… and I haven’t got a clue how to go about it!! Anyone that can help?? ?