0

If else array country Javascript

How to get country array in the message Example Var country = ['US','FR',IN'] Var message = 'US,FR' If(message !== country){ Console.log('result message false'') }else{ Console.log('result true') } How to get result accepted with text = 'US,FR'

27th Apr 2020, 4:40 PM
Alex Pungki
Alex Pungki - avatar
5 Antworten
+ 3
Kindly elaborate your question. It would be better if you share code from playground.
27th Apr 2020, 4:48 PM
Tarun Kumar
Tarun Kumar - avatar
+ 2
Didn't understand the question ,can you explain what really do you want to output? Fail or ok or US,FR
27th Apr 2020, 4:44 PM
Abhay
Abhay - avatar
+ 2
Maybe you had something like this in mind? https://code.sololearn.com/WmpRXdfS1nMB/?ref=app
27th Apr 2020, 5:53 PM
Josef Němec
Josef Němec - avatar
0
How to i condition if else accept with text like = 'US,IN' in array list
27th Apr 2020, 4:51 PM
Alex Pungki
Alex Pungki - avatar
0
Thank josef nemec that worked ..👍🙏🙏
27th Apr 2020, 6:06 PM
Alex Pungki
Alex Pungki - avatar