answersLogoWhite

0

📱

JavaScript

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

500 Questions

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

How can you compile or run the JavaScript programming?

User Avatar

Asked by Wiki User

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'

How can we use script tag in java?

User Avatar

Asked by Wiki User

to implement javascript embed the statements between <script> n </script>,,,

and include any scripting language.

eg:<script LANGUAGE="javascript">

block of codes

</script>

What is scripting or scripting language?

User Avatar

Asked by Wiki User

Scripting languages, of which JavaScript is one, are light-weight programming languages (i.e. not a fully featured programming languages) that exist to enhance HTML and web pages so that they are dynamic or interactive. They interact with, amend or generate HTML. They would not have any function outside of a web page environment.

VB Script program to display multiplication of two matrices?

User Avatar

Asked by Wiki User

<html>

<head>

</head>

<script language="VBscript">

sub fact(n)

dim f,i

f=1

i=1

do while(i<=cint(n))

f=cint(f)*cint(i)

i=i+1

loop

document.write("<br>Factorial of"&n&"is"&f)

end sub

</script>

<body>

<form name="form1" method="post" action=" ">

<input name="n" type="text" id="n">

<input name="Button" type="button" onClick="fact(form1.n.value)" value="Factorial">

</form>

</body>

</html>

What is javascript list out uses of java script?

User Avatar

Asked by Wiki User

JavaScript's role in application development is primarily focused on the user interface. JavaScript allows for remote calls (AJAX) to more complex programming languages. It is also used to produce things like charts and graphs from data sets.

Modern JavaScript also allows for things like animation, and some basic data storage on the client machine in HTML5.

By itself, JavaScript is limited by the fact that it has very limited access to the client machine, and no direct access to remote data. But JS is completely irreplaceable when it comes to creating intuitive, reactive interfaces for the web.

What programs use javascript?

User Avatar

Asked by Wiki User

Seriously a lot of people. It's mostly used to make webpages, so webdesigners use it a lot.

What are the attributes of an Object?

User Avatar

Asked by Wiki User

In general, an attribute is a property or characteristic. Color, for example, is an attribute of your hair. In using or programming computers, an attribute is a changeable property or characteristic of some component of a program that can be set to different values.

What looping structures are there in JavaScript?

User Avatar

Asked by Wiki User

Loops in Java Script are:

for - loops through a block of code a specified number of times

while - loops through a block of code while a specified condition is true

do...while - also loops through a block of code while a specified condition is true

for...in - loops through the properties of an object

For more information, visit the Related Link.

How did javascript begin?

User Avatar

Asked by Wiki User

JavaScript started, because Netscape wanted to add a glue language for web designers to its web browser in 1995. Java made it to their web browser a little earlier and quickly gained popularity, so they changed JavaScript's name from the initial LiveScript to the name it has today.

How is object oriented programming language easier to use than procerdural programming language?

User Avatar

Asked by Joseph24

object oriented programing helps better modeling the world as we humans see it, while functional and procedural programming is for the mathematicians P.O.V. harder to maintain the code, and for me , harder to understand imperative(functional) code over side effect code(OOP) OOP is more intuitive by the grasp of the model to the mind, as it stands to help better model the mind, though most developers i have see so far, can really make a good simulation for the world in order for the code to be more coherent. OOP is Object Oriented Programming P.O.V is Point Of View

What does OLEDB stand for?

User Avatar

Asked by Wiki User

Full form of OLEDB is Object Linking and Embedding database.

Why do cathedrals need gargoyles other than for protection?

User Avatar

Asked by Wiki User

gargoyles also serve as rain spouts, there is a dish with a hole in the gargoyle that collects rain and lets it out of the gargoyle's mouth. gargoyle serve as raiinspouts as well

Write a java script program to print first ten odd natural numbers in C?

User Avatar

Asked by Wiki User

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.

What is listed at the beginning of a script?

User Avatar

Asked by Justina620

Character names

Write a program for scrolling a text in status bar using JScript?

User Avatar

Asked by Rithikraja

Wrote this a few years ago, just paste it in the head or import it from a js file.

pretty self explanatory

<script language="JavaScript">

//Author: fjhdehoog

//Scriptname: Slide in status

var MyStatus='This is an example of how to use javascript to make a scrolling status text';

var start_status=1000; //start in 1 sec

var TBD=100; //Time Btween Digits 1000 = 1 Sec

var LoopIt=1; // 0= dont loop -- 1= loop

var DFSF=10000; //Display full status for 10 Sec /*------------------------------------------*/

setTimeout('ScrollStatus()',start_status); //comment this line out if u want to use body onload or window.onload

CurNum=MyStatus.length;

function ScrollStatus(){

window.status=MyStatus.substring(CurNum);

if (CurNum!=0) {

CurNum--;

setTimeout('ScrollStatus()',TBD); }

else

{

if (LoopIt) {CurNum=MyStatus.length;

setTimeout('ScrollStatus()',DFSF);} else { /*do Nothing*/ } } }

</script>

What are the tools needed to create JavaScript?

User Avatar

Asked by Wiki User

Computer is an electronic computing machine used for adding subtracting or multiplying . Computer work through an interaction of hardware and software.

What is the correct JavaScript syntax to write Hello World?

User Avatar

Asked by Wiki User

document.write("hello world");

How do HTML headers work?

User Avatar

Asked by Wiki User

= = = = = hello =

==

hello HTML tags must be within the "<" and ">" symbols.the largest heading would be: h1 inside these symbols ("<" and ">") for an opening tag, the text you wish to format would then follow, and the closing tag /h1 within these symbols ("<" and ">") would end the tag. Heading size decreases as the number within the tag increases, with h1 being largest and h7 being smallest

What is redundant code in object oriented programming language?

User Avatar

Asked by Wiki User

The basic idea is to duplicate as little code as possible. This helps make the program shorter, but especially, it makes it easier to maintain - if there is an error, or you want to add a feature, you do the change in a single place.

How is Ajax better than Javascript?

User Avatar

Asked by Wiki User

For the most part Javascript is used to make web pages dynamic, move elements on the page, highlighting areas of the page, bringing in new content from the server, etc. There are other cases though like node.js where it's used as a server to make the web pages themselves. There are also a few cases outside of the web world where javascript can be used, some robotics, etc.

How do you find JavaScript on your computer?

User Avatar

Asked by Wiki User

You don't. JavaScript is a special type of language which you will typically find embedded in the program which use them.

For example, each web browser on your computer will have its own version of JavaScript.

What are the advantages of arrays?

User Avatar

Asked by Wiki User

Advantages:

1. You can use one name for similar objects and save then with the same name but different indexes.

2. Arrays are very useful when you are working with sequances of the same kind of data (similar to the first point but has a different meaning).

3. Arrays use reference type and so.

Disadvantages:

1. Sometimes it's not easy to operate with many index arrays.

2. C environment doesn't have checking machism for array sizes.

3. An array uses reference mechanism to work with memory which can cause unstable behaviour of operating system (unless special methods were created to prevent it) and often even "blus screen" and so on. store the many characters or vales in a single variable.