Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
21 assuming the forum doesn't screw me up, here is a reason why js IS THE WORST THING EVER! (sorry for those that like it, I as you might see I dislike it with a passion)
Code:
var myAwesomeString ="js, why you suck \
so much" //ok

var myAwesomeString ="js, why you suck \ 
so much" //syntax error
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
17 I fixed the second one, after fixing the slashes I by accident removed the thing that would crash it >_<
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
17 the second one has a space at the end. This causes js to be so kind to place a ; after the line and then crashing as the string didn't end on the same line (which is an syntax error).
Isn't js fun?
 

RealKC

Popular Member
Dec 6, 2015
1,004
534
129
King of the Hill
21 assuming the forum doesn't screw me up, here is a reason why js IS THE WORST THING EVER! (sorry for those that like it, I as you might see I dislike it with a passion)
Code:
var myAwesomeString ="js, why you suck \
so much" //ok

var myAwesomeString ="js, why you suck \
so much" //syntax error
I tryed to use the forum text editor to find the thing that makes it crash, I can't find it. :(
18/19/20? Current number - 1
Edit16