What looping structures are there in JavaScript?
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.
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?
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
Full form of OLEDB is Object Linking and Embedding database.
Why do cathedrals need gargoyles other than for protection?
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?
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.
Write a program for scrolling a text in status bar using JScript?
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?
Computer is an electronic computing machine used for adding subtracting or multiplying . Computer work through an interaction of hardware and software.
= = = = = 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?
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?
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?
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.
html
What are the advantages of arrays?
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.
How is DOM used in JavaScript?
DOM stands for document Object Model that is used to get, change, add or delete HTML elements.
How do you put java script into HTML?
Javascript inside html
<html>
<head>
<script type="text/javascript" language="javascript">
// Java script code here
</script>
<body>
// html code here
</body>
</html>
Via External Link:
<html>
<head>
<script type="text/javascript" language="javascript" src="location of js file">
</script>
<body>
// html code here
</body>
</html>
How can you insert javascript into an HTML document?
Here are two examples of internal and external calling of javascript
// Your javascript code ehre
Difference between alert number javascript?
alert() function display the message to the user with OK button. Pressing 'OK' button will close the pop up message box.
Example: Please enter your name.
confirm() function will display the message to user with OK and CANCEL button .Pressing OK return 'true' to js script where as pressing CANCEL button return 'false' to js script.
confirm() function is mostly used to collect the user's input also.
Example: Are you willing proceed?
Difference between vbscript and java script?
Visual Basic script and JavaScript are both programming languages. JavaScript is used primarily to create websites, and has no user interface. Visual Basic is used to create software applications, has a user interface, and is less heavy on the code than JavaScript.
Java script is best than other language?
Javascript is useful for coding dynamic webpages. It allows you to make and interpret cookies, make simple animation, make pull down menus, and more. Javascript is used to add more power to HTML, which makes it very useful for webmasters to learn.
How do you count the vowels in a string?
#include #include void main() { char string[50]; int vowel=0,consonant=0; cout<<"Enter the string"; cin.getline(string,50); for(int i=0;string[i]!='\0';i++) { switch (string[i]) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U':vowel++; continue; } if (string[i]!=' ') consonant++; } cout<<"No of vowels="<<<"\nNo of consonants="<
in 1991 games gosling was invented the java
but officially released in 1995 by sun micro systems
What is the difference between server-side and client-side image maps?
server-side and client-side. In the server-side method, when you click an image leading to multiple links, you are actually invoking a cgi-bin program. The program typically reads a separate map file that tells the program where to go, depending on what part of the image you are clicking. The program returns the destination to the web browser, which then opens the page. The imagemap is called "server-side" because the web browser must contact the remote host to find which site to contact.
Client-side imagemaps, by contrast, do not require a cgi-bin program to function. The imagemap is actually an HTML construct that can be contained on the same page as the clickable image. Rather than requiring the program on the remote host to determine what site to access, the web browser itself associates regions of the image with the appropriate sites. The browser, rather than the remote host, interprets the imagemap.