We are building EduLadder(ELADR) - Protocol

The Eladr Protocol is a decentralized, security and efficiency enhanced Web3 noSQL database powered by IPFS as the data storage layer https://ipfs.io/, and the Cardano block chain as the rewards token platform, https://cardano.org/. It provides a JSON based, IPFS layer 2 solution for data indexing and retrieval in an 'append only' file system built with open source Node.js API libraries.

The ELADR token was designed to incentivize and reward community members as a proof of contribution. Token holders are also granted access to EduLadder.com premium features as well as associated ELADR token enabled apps.


Real Problems! Real Experts!

Join Our Telegram Channel !

The Eduladder is a community of students, teachers, and programmers. We help you to solve your academic and programming questions fast.
In eduladder you can Ask,Answer,Listen,Earn and Download Questions and Question papers.
Watch related videos of your favorite subject.
Connect with students from different parts of the world.
Apply or Post Jobs, Courses ,Internships and Volunteering opportunity. For FREE
See Our team
Wondering how we keep quality?
Got unsolved questions? Ask Questions

You are here:Open notes-->Programming-languages-->Js-Java-Script

Js (Java Script)

How to study this subject


JavaScript is most usually utilized as a customer side scripting dialect. This implies JavaScript code is built into a HTML page. At the point when a client demands a HTML page with JavaScript in it, the script is sent to the program and it's up to the program to accomplish something with it. 

The way that the script is in the HTML page implies that your scripts can be seen and replicated by whoever sees your page. In any case, to my psyche this openness is an awesome favorable position, on the grounds that the other side is that you can view, study and utilize any JavaScript you experience on the WWW. 

JavaScript can be utilized as a part of different settings than a Web program. Netscape made server-side JavaScript as a CGI-dialect that can do generally the same as Perl or ASP. There is no motivation behind why JavaScript couldn't be utilized to compose genuine, complex projects. Be that as it may, this website only manages the utilization of JavaScript in web programs. 

On the off chance that you don't have any programming knowledge thinking optimistically to begin with some delicate JavaScript cases that show you the nuts and bolts. It may be a smart thought to purchase Negrino and Smith, "JavaScript for the World Wide Web", fourth version, Peachpit Press, 2001. It contains some extremely valuable illustrations and however it doesn't treat propelled programming deceives, it will unquestionably offer you some assistance with getting started. Obviously this site likewise offers a lot of assistance. 

I can likewise prescribe Jeremy Keith, DOM Scripting: Web Design with JavaScript and the Document Object Model, first version, Friends of Ed, 2005. This, as well, is a book that doesn't dive too profoundly into innovation, however gives non-software engineers, for example, visual planners/CSS wizards an astounding diagram of the most widely recognized employments of JavaScript - and the most well-known issues. 

JavaScript versus Java 

JavaScript is not the same as Java. I rehash: JavaScript is not the same as Java. 

Despite the fact that the names are much indistinguishable, JavaScript is essentially a scripting dialect for use inside of HTML pages, while Java is a genuine programming dialect that does very distinctive things from JavaScript. Furthermore Java is much harder to learn. It was produced by Sun for use in basically anything that needs some figuring force. 

JavaScript was produced by Brendan Eich, then working at Netscape, as a customer side scripting dialect (despite the fact that there's no crucial motivation behind why it can't be utilized as a part of a server side environment). 

Initially the dialect was called Live Script, however when it was going to be discharged Java had turned out to be hugely well known (and somewhat hypey). At last Netscape changed the name of its scripting dialect to "JavaScript". This was done only to market reasons. More terrible, Eich was requested to "make it look like Java". This has offered ascend to the thought that JavaScript is a "stupefied" rendition of Java. Sadly there's not the scarcest shred of truth in this story. 

Java and JavaScript both slip from C and C++, however the dialects (or rather, their precursors) have gone in very distinctive headings. You can consider them to be indirectly related cousins. Both are item situated (however this is less imperative in JavaScript than in numerous different dialects) and they share some language structure, yet the distinctions are more essential than the likenesses. 

On the off chance that you are a C++ or Java software engineer you will be astounded by some of JavaScript's components. Since I don't have any past programming background, the distinctions are not depicted on this site. All the better you can do is purchase David Flanagan, "JavaScript, the Definitive Guide", fifth version, O'Reilly, 2006. In this book the contrasts between C++/Java and JavaScript are obviously clarified. I co–edited a couple of parts of this book. 

The JavaScript dialect 

JavaScript is not a programming dialect in strict sense. Rather, it is a scripting dialect in light of the fact that it utilizes the program to do the filthy work. On the off chance that you order a picture to be supplanted by another, JavaScript advises the program to go do it. Since the program really takes every necessary step, you just need to pull a few strings by composing some moderately simple lines of code. That is the thing that makes JavaScript a simple dialect to begin with. 

Be that as it may, don't be tricked by some fledgling's good fortune: JavaScript can be really troublesome, as well. Most importantly, in spite of its basic appearance it is an undeniable programming dialect: it is conceivable to compose very intricate projects in JavaScript. This is once in a while essential when managing site pages, yet it is conceivable. This implies there are some perplexing programming structures that you'll just comprehend after extended studies. 

Also, and all the more essentially, there are the program contrasts. In spite of the fact that present day web programs all bolster JavaScript, there is no sacrosanct law that says they ought to bolster precisely the same JavaScript. An expansive piece of this site is dedicated to investigating and clarifying these program contrasts and discovering approaches to adapt to them. 

So essential JavaScript is anything but difficult to learn, however when you begin composing propelled scripts program contrasts (and at times syntactic issues) will crawl up. 


Client–side JavaScript has explicitly been created for use in a web program in conjunction with HTML pages. This has certain results for security. 

Above all else, please note painstakingly what happens when a client visits a JavaScript–enhanced site: 

The client requests a sure HTML page without knowing whether it contains JavaScript. The HTML page is conveyed to the program, including the scripts. The scripts normally run naturally when the page loads or when the client makes a sure move. By and large the client can't do anything to stop the scripts (well, he could kill JavaScript, however few end clients know how to do this, or that it should be possible, or that JavaScript exists). 

So essentially a guiltless end client downloads an arbitrary program and permits it to be executed on his machine. Consequently there ought to be strict principles regarding what this project can and can't do. 

JavaScript can't read records from or keep in touch with them to the document framework on the PC. This would be a reasonable security peril 

filesystem.read('/my/secret key/document'); 


JavaScript can't execute whatever other projects. This would likewise be inadmissible 


JavaScript can't set up any association with whatever PC, but to download another HTML page or to send letters. This, as well, would make unsuitable perils: 

var security_hazard = connection.open('malicious.com'); 



Consequently JavaScript just can't do such hazardous things. Tragically Microsoft has wanted to include some filesystem orders in any case, in mix with its ActiveX innovation. This implies Explorer on Windows is basically less protected than whatever other program. It has some built–in insurance, however programmers frequently discover shortcomings. The primary JavaScript infection I knew about works in such a way. 

So JavaScript just takes a shot at things that are in HTML pages or a portion of the program. You can't impact anything that is not contained by the program. However, even inside of the program there are some no–go regions. Essentially JavaScript needs to secure the protection of the client by refusing a few activities and approaching consent for others: 

You can't read out the historical backdrop of the program. In this way a pernicious site proprietor can't compose a script that discovers where you surfed to as of late. 

You can backpedal or forward in the skimming history, yet you can't figure out which page you'll go to. 

You can't do anything in pages that originate from another server. So if your frameset contains two pages from two servers, they can't speak with one another. In this way a pernicious site proprietor can't discover which locales you've opened in other program windows. See the casing busting page for some more data. 

You can't set the estimation of a document transfer field (). 

document.forms[0].upload_field.value = '/my/watchword/record'; 


On the off chance that you attempt to close a program window that has not been opened by JavaScript, the client is requested that affirm this activity. 

Be that as it may, this standard isn't actualized in all programs and is anything but difficult to work around in Explorer. 

In the event that you attempt to present a structure to a mail address by JavaScript, the client is requested that affirm this activity. 

Try not to have the capacity to open another window littler than 100x100 pixels and/or to position it outside the screen region of the PC. Subsequently a malignant site proprietor can't produce an undetectable window. 

Note that Explorer on Windows (and possibly different programs, as well) allows this, in spite of wellbeing regulations. 

In this manner JavaScript is a scripting dialect for affecting HTML components, similar to structures, pictures, layers, passages and such, and for impacting a couple non–HTML articles like the program window. Nothing all the more, yet (in particular) nothing less. 

Program incompatibilities 

At the point when a client gets a page which incorporates JavaScript, the JavaScript mediator of his program kicks in and tries to execute the script. Presently the primary issue here is that the different programs every utilization their own particular translator, and that occasionally program merchants have picked not to execute a touch of JavaScript. Their reasons were typically identified with business advantage over the contenders. 

Subsequently the dreaded program incompatibilities. 

Moreover each new program variant sees more JavaScript and permits more parts of the HTML page to be changed by scripts. This prompts considerably more incompatibilities. 

It's best to tackle similarity issues on a case–by–case premise. Indeed, most pages on this site have been composed correctly in light of program incompatibilities. So read on to see more. In any case, I caution you: you have to process a considerable amount of data. Along these lines it's best to tackle the current issue and leave whatever is left of the data alone until you 

Official Notes

Add contents here

Notes from other sources

Add contents here

Model question papers

Add contents here

Previous year question papers

Add contents here

Useful links

Add contents here



You might like this video:Watch more here

Watch more videos from this user Here

Learn how to upload a video over here