answersLogoWhite

0

OR syntax in javascript

Updated: 10/24/2022
User Avatar

Wiki User

13y ago

Best Answer

x=10;

y=10;

if (x >= 10 y >= 10) { //dostuff }

OR:

AND: &&

greater than: >

greater than or equals to: >=

less than: <

less than or equal to: <=

equals:

NOT: !

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: OR syntax in javascript
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What syntax-based language integrates into HTML pages?

JavaScript


What is the correct JavaScript syntax to write Hello World?

document.write("hello world");


The syntax and keywords of JavaScript most closely resemble those of?

C. The C language is the basis for JavaScript, as well as C++, C#, PHP, and Java. (Among others.)


What is the correct JavaScript syntax for opening a new window called w2?

w2=window.open("http://www.w3schools.com");


How do you save javascript on Roblox?

It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.


What is the correct JavaScript syntax to insert a comment that has more than one line?

The proper syntax to insert a multi-line comment into JavaScript is to surround the comment with /* and */ function useless() { /* This function doesn't do anything We should come back to it. Soon. */ }


Which Compuer Institute is giving Job based Training on JavaScript in FL?

The International Webmasters Association offers an Introduction to JavaScript training program for $220. You will learn the language syntax, how create variables and how to debug. The website is http://www.hwg.org/services/classes/javascriptcourse.html


What is difference between jquery and javascript?

What is JavaScript?JavaScript was designed to add interactivity to HTML pagesJavaScript is a scripting languageA scripting language is a lightweight programming languageJavaScript is usually embedded directly into HTML pagesJavaScript is an interpreted language (means that scripts execute without preliminary compilation)Everyone can use JavaScript without purchasing a licenseWhat is JQuery?JQuery is a JavaScript library that handles many commonly used features and also handles the differences between, e.g., Internet Explorer and standards-compliant browsers. It's something you can use to reduce the amount of work when creating web-based applications. note : Everyone can use JQuery without purchasing a licensenote : JQuery made by Java Script


How do you write javascript?

JavaScript is a non-compiled scripting language and can be written in any plain-text editor, just like HTML and CSS. The added complexity of JavaScript, however, means that most programmers are using at least a tool to provided syntax highlighting, like NotePad++. If you have access to a more full-featured IDE like Dreamweaver or Eclipse, you may want to use it, as the tools provided go a long way to taking some of the headache out of programming.


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


How do you write a javascript to swap two numbers without using third one?

By using the algorithm of bitwise EORing (Exclusive ORing) the numbers together:If the two numbers are X and Y, then to swap them:X = X EOR YY = Y EOR XX =X EOR Ywill swap them.With knowledge of that algorithm, one then uses the syntax of Javascript to implement it.


What languages can a browser understand?

HTML, CSS, &amp; JavaScript.