Sharp Tutorial
operator in js

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

Java Script

  • java script home
  • introduction
  • Variable Declare & Make Comment
  • operator
  • if else
  • loop
  • Array
  • Function
  • Java Script Objects
  • Java Script DOM

JS based examples

  • two number sum and diff programs
  • Pattern program in java script
  • zumble word quiz
  • Random number guess program
  • calculator in java script
  • digital clock in java script

HTML

  • HTML Home
  • Introduction
  • Commonly used tags
  • Formatting
  • Working with class
  • Apply Css
  • Layout
  • Link / Image
  • Html Forms
  • Html Tables
  • Responsive Design

CSS

  • Introduction
  • Types of Css
  • Background and Color
  • Css Formatting
  • Css Layout
  • Css Animation
  • Css Table
  • Css Effects
  • Css Pagination
  • Css Media Query

Java Script Operator

Operate is used to make operation on operands.There are following types of operators to operator in java script.

1. Unary Operator :- only single operand is required to operate.

eg: increment operator ++
    ( further two types are: pre increment ++a and post increment a++).
    decrement operator – –                                                                                                                                                ( further two types are: pre decrement – –a and post increment a – –). 

 

2. Binary Operators :- require two operands to operate.

a. Arithmetic Operators ( + , – , * , /  etc )                                                                                                                   modules operator % gives the remainder part (eg: 7 % 3 gives 1).

b. Relational Operators ( < , <= , > , >= , == , != )

c. Assignment Operators ( = ) :                                                                                                                                    This operator assigns the right value to the left side operand.

d. Logical Operators:

  • logical and ( && ) used to combine multiple conditions (return true if all conditions are true).
  • logical or ( || ) used to combine multiple conditions (return true if any of the conditions is true).
  • logical not ( ! ) Returns True if condition is False and returns False if it is True.

e.Bitwise Operators ( & , | , ^ , ~ , >> , << )                                                                                                                The bitwise operators are used to perform bit level operations in C programming language. When we use the bitwise      operators, the operations are performed based on the binary values. 

eg: if two variables A and B are:
A = 25 (11001) and B = 20 (10100)
then, A & B ⇒ 16 (10000)

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial