.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> JavaScript/VBScript >> Post New Question Subscribe to Interview Questions

is JavaScript a compiler or interpreter.if so why?

Posted By :parthiban     Posted Date :July 28, 2010    Points :10   Category :JavaScript/VBScript 
javascript is a scripting language that executes on client browser.
its a interpreter language whereby script executes before compilation

You can also find related Interview Question to is JavaScript a compiler or interpreter.if so why?  below: 

what is the difference between compiler and interpreter?
give any one example for interpretter?

An interpreter reads each line of the source code and
converts it to machine code on the fly. This happens every
time the programme is run. Consequently it is very slow as
it is converting source code to machine code while the
programme is running.

A compiler does it once and thats it.

DOS BASIC is an example for interpretter. (More...)

What is DML Compiler?

It translates DML statements in a query language into low-level instruction that the query evaluation engine can understand. (More...)

What is DDL Interpreter?

It interprets DDL statements and record them in tables containing metadata. (More...)

Name the DatTypes of JavaScript?

4)Null (More...)

Whether Javascript is a OOP's based language?

No. It doesn't support all the concepts of OOPS. It supports partially. (More...)

Whether VBscript or Javascript which is better?

Javascript. Since it is platform independent. (More...)

What optimizations does the C# compiler perform when you use the /optimize+ compiler option?

The following is a response from a developer on the C# compiler team: We get rid of unused locals (i.e., locals that are never read, even if assigned). We get rid of unreachable code. We get rid of try-catch with an empty try. We get rid of try-finally with an empty try. We get rid of try-finally with an empty finally. We optimize branches over branches: gotoif A, lab1 goto lab2: lab1: turns into: gotoif !A, lab2 lab1: We optimize branches to ret, branches to next instruction, and branches to branches. (More...)

How do you Implement Timer Control in Javascript?

set Timedout("alert('5 seconds')",5000); Here the argument 5000 shows the millisecond value. (More...)

How do you declare 2 dimensional array in Javascript?

myarray[0][0]="Compaq 486"
myarray[0][1]="Compaq 586"
myarray[0][2]="Compaq 686"
myarray[1][0]="Dell 486"
myarray[1][1]="Dell 586"
myarray[1][2]="Dell 686"
myarray[2][0]="IBM 486"
myarray[2][1]="IBM 586"
myarray[2][2]="IBM 686" (More...)

How to validate a Email-address, in Form using JavaScript?

We can validate it through the reg expressions. For example we can declare all the reg expressions of the email in a variable as follows.

var reg = /^([A-Za-z0-9_-.])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,4})$/; We need to compare the actual value with this expression for the validation. (More...)

Explain about the Boolean functions present in Javascript?

Three Boolean operators are present in Javascript they are
1) &&
2) II
3) /
All the operators are regarded as true unless the Javascript regards them as false. You can define these operators to make as statement false number0, null, undefined, or a string of length 0, etc. Boolean function performs these conversions explicitly. (More...)

What does break and continue statements do in JavaScript?

Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop in JavaScript. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend