Answers for "js code"

6

how to code javascript

console.log("Hello World!");
Posted by: Guest on May-13-2020
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
5

javascript code

html>
<head>
  <title>Multiplication Table</title>
  <script type="text/javascript">
    var rows = prompt("How many rows for your multiplication table?");
    var cols = prompt("How many columns for your multiplication table?");
    if(rows == "" || rows == null)
   		 rows = 10;
    if(cols== "" || cols== null)
   		 cols = 10;
    createTable(rows, cols);
    function createTable(rows, cols)
    {
      var j=1;
      var output = "<table border='1' width='500' cellspacing='0'cellpadding='5'>";
      for(i=1;i<=rows;i++)
      {
    	output = output + "<tr>";
        while(j<=cols)
        {
  		  output = output + "<td>" + i*j + "</td>";
   		  j = j+1;
Posted by: Guest on July-19-2020
1

javascript code

function getIntoAnArgument() {
    var args = arguments.slice();
    args.forEach(function(arg) {
        console.log(arg);
    });
}
Posted by: Guest on July-19-2020
1

js

JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled
programming language with first-class functions. While it is most 
well-known as the scripting language for Web pages, many non-browser
environments also use it, such as Node.js, Apache CouchDB and Adobe
Acrobat.
Posted by: Guest on July-30-2020
0

js code

js basic code example
Posted by: Guest on January-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language