Answers for "how to code in js"

2

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>
Posted by: Guest on January-24-2021
5

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 + ".");
Posted by: Guest on June-22-2020
0

javascript learning

//checkout freecodecamp
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language