Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 5283

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 61k
Author
Asked: November 27, 20242024-11-27T07:49:08+00:00 2024-11-27T07:49:08+00:00

JAVASCRIPT

  • 61k
  • JavaScript was build in 1995 by Brendan Eich

  • JavaScript is a extra-ordinary just in time complied programming language that confirms to ECMAScript Specification.

  • JavaScript close at hand HTML and CSS is one of the core technologies of the world wide web.

  • JavaScript can be used to build server side applications.

  • JavaScript is the most Popular programming language according to the 2022 stack overflow developer survey.

Two ways of implementation of JavaScript in HTML

  1. Inpage Javascript
  2. External javascript
     <head>           <script>           </script>      </head>      <body>         <h1>Inpage Javascript</h1>       <script></script>      </body> </html>  *Second is external JavaScript helps to connect js file with html file, if file name is content.js,  it will be insert html as <html>      <head>           <script src="content.js"></script>      </head>      <body>      </body> </html> ```    
Enter fullscreen mode Exit fullscreen mode

What are the comments in Javascript ?
There are Two types of comments.

  1. Single line comment
  2. Multiple line comment

commented code will stay in code but wont its like body without live.

if your any single line of code is useless you can comment it with two slash //
for example

 <body>       //<h1>Inpage Javascript</h1>  </body>  
Enter fullscreen mode Exit fullscreen mode

And if your code is than more 1 line, you can comment it with slash and star /* from start till end of code
for example

 <body>       /*<h1>i am double line code</h1>         <div>hello world </div>         <div>hello coders</div>*/ </body>  
Enter fullscreen mode Exit fullscreen mode

what are the variables ? in JavaScript and what are its types?

A JavaScript variable is simply a name of storage location. There are two types of variables in JavaScript.

  • local variable and
  • global variable.

Variables are Declares in 3 Types
1.Var (Global scope)
2.let (Block scope)
3.Const (Block scope)

global scope has access to work anywhere in program, But block scope only works inside the { curly brackets}.

 if(condition){        if(condition){          if(condition){ var a="hello world"     var a="hello world"      var a="hello world" }                         console.log(a)           console.log(a)         console.log(a)           }                         }   
Enter fullscreen mode Exit fullscreen mode

What are the Data Types in Javascript ?

  1. String (if data is inside “Quotes”),
  2. Number (if data is a 1,2,3 number),
  3. Boolean (if data is true or false),
  4. Array (if data is inside [ square bracket ]),
  5. Object (if data if under {curly bracket}),
  6. Null (if data is null),
  7. Undefined (no data).

what are the Arithmetic Operators in javascript and its uses ?

  1. + (plus sign) used for addition purpose.
  2. – (minus sign) used for subtraction of values.
  3. * (star sign) used for multiplication.
  4. ** (2 star sign) used for exponentiation.
  5. / (slash sign) used for division.
  6. % (percentage sign) for modulus remainder.
  7. ++ (2 plus sign) used for increment.
  8. — (2 minus sign) used for decrement.

and there are also an Assignment Operator and Comparison Operators

this are the Assignment Operator given below

  1. =
  2. +=
  3. -=
  4. *=
  5. /=
  6. %=
  7. **=

Now Lets check the Comparison Operator's Below

  1. == (2 equal to) must have same value.
  2. === (3 equal to) must have same value and same data type.
  3. != (xcalamtion and equal) shows not equal value.
  4. !== (xclamation and 2equal) not equal value or not equal type.
  5. > (greater than)
  6. < (Lesser than)
  7. >= (greater than or equal to)
  8. <= (Lesser than or equal to)

beginnersjavascriptprogrammingwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    ES6 - A beginners guide - Template Literals

    • 0 Answers
  • Author

    Understanding Higher Order Functions in JavaScript.

    • 0 Answers
  • Author

    Build a custom video chat app with Daily and Vue.js

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.