0
What comes first ..?
Is it necessary to learn html coding before javascript ? Or can I learn it on its own completely ??
2 ответов
+ 1
Many things in Javascript (JS) can be learnt without knowing pretty much anything about HTML. Basic programming stuff like loops, conditions, functions, etc don't require a background knowledge of HTML.
Question is, why do you want to learn JS? Most people learn it because they want to add interactivity/programming elements on their webpage. And for that, eventually some knowledge of HTML would be necessary. So you can start with JS, and when the time comes, start on HTML too.
And if you just want to learn how to write programs, with no connection to www, you might want to consider a different language.
0
you can use console.log(_variable_) or document.write(_variable_) to print the result of your functions