how to create js code
<!--just open a file with the ending of ".js"
example: myFirstJS.js
an other option is to write this sentence on HTML document:
-->
<script type="text/javascript">
//write here your code
</script>
how to create js code
<!--just open a file with the ending of ".js"
example: myFirstJS.js
an other option is to write this sentence on HTML document:
-->
<script type="text/javascript">
//write here your code
</script>
js code
//A javascript coding example.
var emotion = "happy";
var time = 1614;
var name = "Ruby";
var day = "morning";
if ( time < 1200 ) {
day = "morning";
};
else if ( time < 600 || time > 2200 ) {
day = "night";
};
else {
day = "afternoon";
};
console.log("at " + time + "at " + day + ". " + name + "was felling quite" + emotion + ".");
javascript learning
//checkout freecodecamp
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us