Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
JavaScript - Looping thru strings
//Title of this code //V8 3.31.1 print("START"); var webConfig = "9/7/2015, 11/26/2015, 12/25/2015,, 1/1/2016, 5/30/2016, 7/4/2016, 9/5/2016, 11/24/2016"; var blockDates = webConfig.split(","); var arrayLength = blockDates.length; for( var i=0; i<arrayLength; i++) { if (blockDates[i] == "" || 1==0) print("BLANK"); else if (blockDates[i].trim() == "1/1/2016" || 1==0) print("BAD DATE"); //break; else print("\tDate: '" + blockDates[i].trim() + "'"); } print("END");
run
|
edit
|
history
|
help
0
BaseConverter
My first app
I love sorting
123
black peepz ping pong
JS exam part 2 - MonthCrypto
G
Functions
oneAway
Functions