Skip to main content

JavaScript tutorial #1|| JavaScript tutorial||codeandman(Source Code)

JavaScript tutorial #1|| JavaScript tutorial||codeandman(Source Code)



Hello what's up guys how are you all today in this post I am going to give you the source code of my video called "JavaScript tutorial #1|| JavaScript tutorial||codeandman" so let's begin with this awesome post:
Checkout this video:


coding of index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS tutorial no 01</title>
</head>
<body>
    <p>This is a paragraph</p>
    <h1>Welcome to tutorial 01 by codeandman(Gautam Sharma)</h1>
    <h2>SUBSCRIBE, LIKE,Share this video😍😍</h2>
    <script>
        var age = 12;
        console.log("Your age is : ",age);
        console.log("HELLO WORLD");
    </script>
</body>
</html>
this was the coding which we have done during this video.

What we have done during this video

In this video we have covered these things:
  • difference b/w client side and server side
  • Installation of vs code and other extensions
  • First Line of code in the JavaScript in the browser.
  • apply JS to pages

Difference b/w Client side and Server Side

Client Side
The Client Side is the part of the website which the user can see. Basically, it is the html, CSS and JavaScript which the server returns to the browser. then the browser compiles this HTML, CSS and JavaScript and shows the user what they want. I hope that you understand what I want to tell you.

Server Side
The Server side is the part of the website which the user cannot see. basically it is the algorithm of a website. algorithm means sequence of steps to do something. Like different sequence of steps for searching and different for adding new content.

Installing VS code and other extensions

If you want to install vs code in your pc then you have to follow these steps:
  • Go to any browser and go to google
  • after that search for vs code download
  • after that click on the first link coming in the search results
  • now download vs code for your operating system.
  • now install the vs code by doing next next (similarly like you install a game).
  • now open the vs code and then go to the extensions section.
  • from the extensions section search for live server now download and install the live server.
Now we have installed vs code and also other extensions. The vs code is a code editor which we are going to use during this course and the live server generates a URL which automatically reloads when we edit our html or css or js in the vs code. check the video for details

First Line of code in JS in the browser

  • go to your browser and then click inspect.
  • after that you will see a window appears.
  • click on the console.
  • now console will be opened.
  • write this statement "console.log("hello world");"
  • You will see hello world coming.
now say congratulations to yourself because you have written first line of code in JS successfully😊😊.
For more things click on the video which is available at the very top of the post.
Thank You.

Comments

Popular posts from this blog

Arrays and conversion in Javascript || javascript complete course || #7 (sourcecode)

hey guys how are you all today in this post I am going to give you the source code of my video called arrays and  conversion in JavaScript so let's begin:- // ARRAYS in javascript console . log (" This is arrays in js ") var arr1 = [ 32 , 34 , 23 , 23 , 234 ," this ", {     name:" Gautam ",     class : " 8th ",     rollno: 6 } ] console . log ( arr1 ) console . log ( arr1 [ 5 ]) console . log ( arr1 .length) console . log ( arr1 . concat (' main ')); console . log ( arr1 ); // // ---------------------------------------------------- // CONVERSION IN JAVASCRIPT // Converting in to strings var num1 = 45 ; console . log ( num1 ); var str1 = String ( num1 ); console . log ( str1 ); console . log ( typeof str1 ); console . log ( typeof num1 ); var number1 = 33453434 ; console . log ( number1 , typeof number1 ); var string1 = number1 . toString (); console . log ( string1 , typeof string1 ); // ----------------------------...

types of operators in javascript || javascript course || codeandman (sourcecode)

hey guys how are you all today in this post I am going to give you the source code of my video called types of operators in javascript. so let's begin : here's the complete source code and the video:- // ------------------------------------------------------------------------------------ // COMPARISON OPERATORS IN JAVASCRIPT console . log (" COMPARISON OPERATORS IN JAVASCRIPT ") console . log ( 32 == 32 ) // checking if 32 is equal to 32 console . log ( 32 != 32 ) // checking if 32 is not equal to 32 console . log ( 32 >= 31 ) // checking if 32 is greater or equal to 31 console . log ( 32 < 33 ) console . log ( 32 > 30 ) console . log ( 32 <= 09 ) // ASSIGNMENT OPERATORS console . log (" --------------------------------------- ") console . log (" Assignment operators in javascript ") var d = 34 ; var e = 3 ; var a = 10 ; console . log ( d ) console . log ( d += 1 ) console . log ( d -= 3 ) console . log ( e *= 2 ) console . log...

Complete HTML Tutorial for beginners

Complete HTML Tutorial for beginners   I f you want to read this in a pdf than you can get this ebook:- Getting started with the html About This Course The html is the language for creating web pages. It is used for defining the content with the html you can create very simple web pages with CSS you can make the simple web page stylish and with the Javascript you can add logic to those stylish web pages. if you want to earn money from the web development then it is compulsory for you to learn these three languages. Today in this post you will learn the html completely. so let's begin:- Introduction to Html The html is the language for defining the elements of the web page. It stands for hyper text markup language. It is easy to learn. It is the basic language for creating web pages. Tags and Elements in the HTML There are two things in the HTML:- Tags - It is the part of the text which is used for creating content.  Elements - When we insert content inside a html tag then it ...