answersLogoWhite

0

📱

JavaScript

Questions about JavaScript - the Scripting Language used for Web development.

721 Questions

Multiplication Table in Javascript language?



finding quotient and remainder


Creates a multiplication table of desired number




Enter the number :





How do you adjust screen resolution?

Right click on desktop and select properties. Go to the settings tab and there you will find the screen resolution tab. You can scroll the tab to set the appropriate screen resolution.

Adjusting Screen ResolutionSTART - Settings - Control Panel - Display. Click on the "Settings" tab. On the lower right corner there is a slide bar called "Size Area". Slide the bar to the size you want. If icons are too big, slide the bar to the right. Click "Apply" and a message will pop up and click "OK". The screen will resize and ask you if you want to keep it. Click "Yes" if you want to or no if you want another size. After you are happy with the correct size, click "OK" to close the Display settings. Done.

Here are more answers from other Wiki s contributors:

  • To change the screen resolution all you have to do is right-click on your desktop and click properties. When the window comes up, click the tab labelled Settings. You can change screen resolution and color settings there.

Right click on the desktop, click properties, then go to the settings tab. From there you will see a thing that you can drag to make your monitor show different resolutions.

Why do you use print preview?

One use would be to see how your work would look when it is printed. You can have a look at it from a different zoom angle and you would be able to see whether the font is readable from that distance or whether the pictures are too small, or whether the title needs to be bigger, and you can see the whole sheet together - not just 1 third of it or something. It is also possible to adjust margins in Print Preview.

What are the steps of encapsulation?

Encapsulation is the process of adding header information to the layers' data "payload". As the "payload" is passed from one TCP/IP (or OSI) layer to the next, encapsulating layer information is wrapped around the data. So, for example, if the application layer produces a data payload for transmission, it encapsulates it with application-layers headers, which then gets passed to the presentation layer. The presentation layer does the same and so down the protocol stack before transmission across the physical media. At the destination, the process is reversed by way of de-encapsulation where the headers are stripped-off by each matching layer at the destination.

1. Application, Presentation and Session layers create data. {Encapsulation headers added by layers}

2. Transport layer coverts data into segments for transport across the network. {Encapsulation headers added by layer}

3. Network layer converts segments into packets (or Datagrams). {Encapsulation headers added by layer}

4. Data Link layer converts packets (and datagrams) into Frames and the Data Link header is added. {Encapsulation headers added by layer}

5. Physical - frames are converted into bits for transmission over the physical media.{Encapsulation headers added by layer}

How do you turn JavaScript on?

This depends on your browser.

In Firefox: Extra-> Options -> Content -> Enable Javascript

In Internet Explorer: Tools -> Security -> Custom Level -> Enable Active Scripting

In Safari: Tools-menu (right-top) -> Preferences -> Security -> Enable Javascript

Otherwise refer to your browser's manual.

In Chrome 5:

Wrench (button) | Options | Under the Hood (tab) | Content Settings (button) | Javascript (tab) | Check Allow All Sites to Run JavaScript

Why was JavaScript Developed?

JavaScript was developed to address specific needs and challenges related to web development. Here are the key reasons why JavaScript was created:

Dynamic Web Pages: In the early days of the web, web pages were static and displayed static content. JavaScript was introduced to enable the creation of dynamic web pages that could respond to user interactions, such as mouse clicks and form submissions. This made websites more interactive and user-friendly.

Client-Side Scripting: JavaScript is a client-side scripting language, which means it runs in the user's web browser rather than on the web server. This allows web developers to create responsive and interactive user interfaces without relying solely on server-side processing.

Enhanced User Experience: JavaScript enables developers to create features like image sliders, interactive forms, and real-time updates, enhancing the overall user experience of a website or web application.

Reduced Server Load: By offloading certain tasks to the client-side, JavaScript reduces the load on web servers, making websites more efficient and scalable.

Cross-Browser Compatibility: JavaScript was developed to work across different web browsers, ensuring that web applications function consistently for users regardless of their browser choice.

Open Standards: JavaScript is based on open standards and is supported by web standards organizations like the World Wide Web Consortium (W3C). This means it can be used in a vendor-neutral manner.

Versatility: JavaScript is a versatile language that can be used for a wide range of tasks, from DOM manipulation and form validation to creating web-based games and interactive charts.

Interactivity: JavaScript allows developers to create interactive elements that respond to user actions, such as pop-up windows, tooltips, and drag-and-drop functionality.

Ecosystem and Libraries: Over time, JavaScript has evolved to include a rich ecosystem of libraries and frameworks (e.g., jQuery, React, Angular) that simplify web development and offer pre-built solutions for common tasks.

Evolution of Web Applications: As web applications became more complex and user expectations grew, JavaScript played a crucial role in enabling the development of sophisticated and feature-rich web applications.

JavaScript continues to be a fundamental technology for web development and has expanded its reach beyond the browser into server-side development (e.g., Node.js) and even mobile app development (e.g., React Native). Its versatility and wide adoption make it a cornerstone of modern web development. And Contact Croma Campus for the Best jQuery Online Course because they are one of the best IT Insitite In India.

For More Information :- +91-9711526942

What does script include?

text of a play, characters, setting

How are HTML editors accessed?

There are some online HTML editors, but the main ones are Notepad for window and TextEdit for Mac.

What is Ajax?

Ajax - Asynchronous JavaScript and XML

By using the programming practice termed "Ajax" you will be able to trade data without having to load a new page. AJAX is a new technique for creating better, faster, and more interactive web applications. With it, Internet applications can be made richer and more user-friendly.

What is the Difference between JavaScript and Java Applets?

Javascript is a scripting language that is object based code that makes it easier to work with objects. Java Applets is an applet that reads Java, which is different than Javascript, and compiles it. Java Applets are mostly known for games and can also be used for a website if you know what you are doing.

JavaScript is an event-based programming language?

JavaScript is a dynamic programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.

Can identify the odd and the even in the java script using HTML?

Here is a JavaScript option for determining if a number is odd or even. It even lets you know if the number is zero (if you want zero to be neither odd nor even).

var n = prompt("Enter a number to identify as odd or even", "Type your number here");

n = parseInt(n);

if (isNaN(n))

{ alert("Please Enter a Number"); }

else if (n == 0) { alert("The number is zero"); }

else if (n%2) { alert("The number is odd"); }

else { alert("The number is even"); }

Which is to be learnes first java or java script?

There's an old saying among programmers that Java is to JavaScript as ham is to hamster. The one you choose to learn first is more a preferential choice than one of the easier way to learn.

Java is not related to JavaScript.

Java is an object-oriented, compiled computer language used to build everything from televisions to advanced scientific equipment to operating systems. Java has a very large set of prebuilt functions, and is similar to C#.

JavaScript is also object-oriented, but the kind of object orientation is different than most every other object oriented language. JavaScript allows you to manipulate the elements of an HTML document, as well as do some basic server-side stuff. JavaScript has a much smaller area of concern than Java. JavaScript remains plaintext, and is not compiled. It also has no access outside the browser (if they haven't made a mistake in the browser.)

I would suggest you learn JavaScript if you have an ambition to work with the web. Java also has a footprint on the internet, but it's mostly server-side and much smaller.

If you want to go into Software Engineering, and are looking for a good language to start dealing with the complexities therein, than Java is a good choice. It's robust, widely available, and has a vibrant community.

Learning both wouldn't hurt you either, but it's important to understand that they are not related in any way, except for their names, and an ancient connection to Netscape.

Login code for HTML?

If you mean how to create a login code with HTML, you need a tag called

and a tag called and something in another programming language, such as php or java. There is no login code necessary to use HTML.

Write a program in java programming language to print welcome to java programming?

public class welcome { public static void main (String args[]) {

System.out.println("Welcome to Java programming");

}

}

There are also many "Hello World" tutorials you can find elsewhere on the internet

How run vb script?

Hi! VBScript (Visual Basic Script) is very simple to learn easy! Open Notepad and type a coding language. Try this one:

x=msgbox("Hello there this is VBScript!",0,"VBScript")


Take this and save it as WHATeveryYOUwant.vbs

(you must have .vbs at the end!)

The x symbolizes a value. It's unneeded now. The msgbox means what box it uses. The first " " is the message. the 0 is the message type. 0 says ok. (try changing it!) The second " " is the title at the top bar. Wanna make you own? take out the words PUTTEXTHERE with what you want. also change # with a random number 0-140 i think. Good luck:


x=msgbox("PUTTEXTHERE",#,"PUTTEXTHERE")


You can make multiple lines. That's basic VBScript!

Do you need java script?

In general, no you do not need Java or JavaScript to play music on your computer. However, if you want to hear music played by a website, there's a good chance that it uses one of these technologies to do it, in which case you would need Java or a JavaScript enabled browser.

What is the simple differences between client and server?

Client is when the images, animation, and other things on the page is not needed to go back to the server and load it all. Server is when the images, animation, and other things on the page need to be taken from the server every time. Its very useful to have Client because that way all the information on your page does not need to be reloaded every time. instead it is stored in history and is retrieved much faster.

How do you call a perl program from javascript?

You can call the Script like this,

<script type="text/javascript" src="perl_script.pl"></script>

So you just replace a regular Javascript Call ( .js ) with the .pl Script.

Inside the Perl Script you will have to use embraced Javascript Functions / Code,

f.e. like print "document.write.('Hello World');";.

How can you compile or run the JavaScript programming?

JavaScript programs cannot be compiled, but it is easy to run them if you embed them into a HTML file, and open it in your browser.

Note: If you want a example, select menu-command View/Source and search for '<script'