St0rmSlaSh Posted January 18, 2016 Share Posted January 18, 2016 Hey guys! I recently got sublime text 2 installed and I was looking up youtube videos on how to run the files, etc. But, when i run the HTML file in the browser in doesn't run the javascript. I put <script> type="text/javascript"></script> but it still doesn't work. The javascript file has some alerts and prompt on it but I dont think that matters. Quote Link to comment Share on other sites More sharing options...
Zelly Posted January 18, 2016 Share Posted January 18, 2016 Debuggin javascript like that seems tedious XD I am no expert on javascript but I think if you are learning JS this is a good way to test your stuff: https://jsfiddle.net/ 1 Quote Link to comment Share on other sites More sharing options...
St0rmSlaSh Posted January 18, 2016 Author Share Posted January 18, 2016 Debuggin javascript like that seems tedious XD I am no expert on javascript but I think if you are learning JS this is a good way to test your stuff: https://jsfiddle.net/ I tested everything on js fiddle just now, and it seems to work perfectly. Maybe there's something wrong with sublime? Quote Link to comment Share on other sites More sharing options...
Zelly Posted January 18, 2016 Share Posted January 18, 2016 Yeah no idea how sublime works for that sort of thing . 1 Quote Link to comment Share on other sites More sharing options...
St0rmSlaSh Posted January 18, 2016 Author Share Posted January 18, 2016 Yeah no idea how sublime works for that sort of thing . lol Okay. Can't you use notpad? Quote Link to comment Share on other sites More sharing options...
Zelly Posted January 19, 2016 Share Posted January 19, 2016 Idk any place I have used JS (Which isn't often for me) I have either tested it live on my site(I guess I would edit it with notepad++ though) or on jsfiddle Quote Link to comment Share on other sites More sharing options...
Drizzt DoUrden Posted January 19, 2016 Share Posted January 19, 2016 you should post the source code, so its easier to see where the problem is. 1 Quote Link to comment Share on other sites More sharing options...
St0rmSlaSh Posted January 19, 2016 Author Share Posted January 19, 2016 you should post the source code, so its easier to see where the problem is. Alright, well right now I'm on my school laptop which doesn't have a hard drive at all besides the storage in google docs XD But I will post it after I'm done with school Quote Link to comment Share on other sites More sharing options...
ajnl Posted January 22, 2016 Share Posted January 22, 2016 <script> type="text/javascript"></script> Is the extra > in your html code also? 1 Quote Link to comment Share on other sites More sharing options...
St0rmSlaSh Posted January 25, 2016 Author Share Posted January 25, 2016 <script> type="text/javascript"></script> Is the extra > in your html code also? Idk, I deleted the editor. XD i will download it again. But ya, I think so Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.