JS Study Notes

Some JS Basic ideas

1. Usually wrapped by head tag

2. Tag semantics:

1
2
3
<script>
alert('Hello World!');
</script>

you can also use an external JS file to store your JS codes:

1
<script src=url></script>

3. Sentences are ended by ‘;’

4. Comment Usage:

1
2
3
4
/*
This is a comment!
*/
//This is also a comment!
0%