Javascript Tutorials #1 "Hi @everyone"

By @yoendrit6/6/2018utopian-io

javascript.jpg

First javascript tutorial, for people who want something that works on all possible platforms ...! The following tutorials will be devoted to the study of this programming language, using different techniques with their respective results, in order to learn interactively !.

What Will I Learn?

We will learn how to make the program "Hi @everyone" in several ways in javascript.

Repository

https://github.com/yoendritv/javascript.git

Requirements

A- Browser
B- Notepad
C- Create an .html file and open it in the browser
D - Have a basic knowledge of HTML and CSS

Difficulty Choose

Basic

Tutorial Contents

In our notepad we will write the following:




<html>
<head>
</head>
<body>
<script language="javascript">
// todo el codigo se insertara aqui.
</script>
</body>
</html>



Inside <script language = "javascript"> </ script> we will write the following codes with which we will see our first message.


ALERT

  <script language="javascript"">
  alert("Hi @everyone!!!");
  </script>

"alert" shows an alert message, in this case, it shows this message: Hi @everyone !!!.


DOCUMENT.WRITE

 <script language="javascript">
  document.write('Hi @everyone!!!'+ '<br>');
  </script>

"Document.write" shows a message printed on the website on which we are working, with the same message: Hi @everyone !!!.




In this case, we will use the javascript outside of <script> </script> and we will use the code in the html directly, we will write it in the <body> </ body> using <button onClick = ""> with the sentences "alert" and "document.write":

<button onClick = "alert ('Hi @everyone !!!')"> click here! </ button>

<br><br>

<button onClick="document.write('Hi @everyone!!!')">click here!</button>

<br><br>



These are two sentences to show any message, soon we will practice more the sentences "alert" and "document.write",

Let's practice these sentences showing many messages to reinforce what we have learned ...!

leave in the comments the code of your practices, and we will all learn from everyone!

Curriculum

This is the beginning of this series of tutorials.

Proof of Work Done

https://github.com/yoendritv/

comments