JavaScript: Run scripts on Replit ver. 1

Last Updated on June 18, 2022 by shibatau

II is added.

I. Learning Javascript using Replit

You can put out “Hello” in three ways. The first one is in HTML , the second one is JavaScript codes embedded in HTML, and the third one is JavaScript codes on another JS file.

You can see the last scripts here:

II. Calculation

var a = 33;
var b = 10;
var linebreak = "<br />";
function multiply(num1,num2) {
  let result = num1 * num2;
  return result;

result = a + b;
document.write("a + b = ");
document.write("a - b = ");
result = a - b;

document.write("multiply(4, 7) = ");
result = multiply(4, 7);

You can see the scripts here:

To be continued.

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.