answersLogoWhite

0

📱

JavaScript

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

500 Questions

Can Ajax be used to move files on the client-side?

User Avatar

Asked by Wiki User

See this video on Brain mentors youtube channel and copy this ID on google search:-

Multiplication Table in Javascript language?

User Avatar

Asked by Wiki User

Here is an example of a multiplication table in JavaScript:

// Function to generate a multiplication table
function multiplicationTable(rows, columns) {
  // Create a for loop to iterate over the rows
  for (let i = 1; i <= rows; i++) {
    // Create a for loop to iterate over the columns
    for (let j = 1; j <= columns; j++) {
      // Multiply the row and column numbers and print the result
      let result = i * j;
      console.log(`${i} x ${j} = ${result}`);
    }
  }
}

// Call the multiplicationTable function with specified rows and columns
multiplicationTable(10, 10);

This code generates a multiplication table where the number of rows and columns are specified. It uses nested for loops to iterate over the rows and columns, calculates the multiplication, and prints the result for each cell in the table.

How do you adjust screen resolution?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

text of a play, characters, setting

How are HTML editors accessed?

User Avatar

Asked by Wiki User

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

What is Ajax?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

JavaScript and Java Applets are two distinct technologies with different purposes and implementations, despite their similar-sounding names. Here are the key differences between JavaScript and Java Applets:

  1. Language and Purpose:

JavaScript: JavaScript is a lightweight, interpreted scripting language primarily used for client-side web development. It runs directly in web browsers and is used to add interactivity and dynamic behavior to web pages.

Java Applets: Java Applets are small Java programs that are designed to run within a web browser. They are typically used to provide interactive features on web pages, such as animations or small applications.

  1. Language Syntax:

JavaScript: JavaScript has a C-style syntax and is a dynamically typed language, meaning variable types are determined at runtime. It is executed by the web browser.

Java Applets: Java Applets use the Java programming language, which has a C++-like syntax and is statically typed, requiring explicit type declarations. Java Applets are compiled into bytecode, which is executed by the Java Virtual Machine (JVM) in the browser.

  1. Execution Environment:

JavaScript: JavaScript runs directly in the web browser on the client-side. It does not require any additional installations or plugins.

Java Applets: To run Java Applets, the user's browser must have the Java plugin installed. Over the years, browser support for Java Applets has significantly decreased, and they are no longer supported in many modern browsers.

  1. Portability:

JavaScript: JavaScript is highly portable and works across different web browsers and operating systems, making it a versatile choice for web development.

Java Applets: While Java itself is known for its platform independence, Java Applets can be less portable due to browser compatibility issues and the need for the Java plugin.

  1. Deployment:

JavaScript: JavaScript code is typically embedded directly into HTML files or included as separate external files. It is easy to deploy and update.

Java Applets: Java Applets require the creation of a separate .class file and the inclusion of HTML tags to embed the applet. Deployment can be more complex and may require additional security configurations.

  1. Popularity and Usage:

JavaScript: JavaScript is widely used in modern web development to create dynamic and interactive web pages. It is supported by all major web browsers.

Java Applets: Java Applets were once popular for web-based interactive content but have declined in usage due to compatibility issues, security concerns, and the rise of alternative technologies like JavaScript and HTML5.

In summary, while JavaScript and Java Applets share some similarities in their names, they serve different purposes and have distinct characteristics. JavaScript is a versatile scripting language for client-side web development, while Java Applets are small Java programs that run within web browsers and provide interactive features. It's important to choose the right technology based on your specific project requirements and the current state of web development trends. AchieversIT offers comprehensive training in both JavaScript and Java to equip students with the skills needed for their chosen career paths.

JavaScript is an event-based programming language?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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?

User Avatar

Asked by Wiki User

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.

Who had discovered the brahmi script in1838?

User Avatar

Asked by Wiki User

james prinsep

What is the simple differences between client and server?

User Avatar

Asked by Wiki User

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.

What is the oldest script?

User Avatar

Asked by Wiki User

How do you call a perl program from javascript?

User Avatar

Asked by Wiki User

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');";.