Found 6704 Articles for Javascript

What is the difference between JavaScript frameworks?

Abhinaya
Updated on 30-Jul-2019 22:30:20

137 Views

The following is the comparison of some JavaScript Frameworks:AngularJSDojoEmber.jsGoogle Web ToolkitDrag & Drop FunctionalityNoYesNoYes, but only with plugins.Provides Simple Visual EffectsYesYesNoYesProvides Rich Text EditorNoYesNoYesSupport For CanvasNoYesNoYesSupport For CanvasNoYesNoYes

List of Best JavaScript Frameworks?

Govinda Sai
Updated on 30-Jul-2019 22:30:20

122 Views

AngularJSAngularJS is an open source web application framework. It was originally developed in 2009 by Misko Hevery and Adam Abrons. AngularJS is now maintained by Google.Backbone.jsBackboneJS is a lightweight JavaScript library that allows to develop and structure the client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.Ember.jsEmber.js is an open source, free JavaScript client-side framework used for developing web applications. Ember.js allows building client side JavaScript applications by providing a complete solution which contains a data management and an application flow.The original ... Read More

List of Best JavaScript libraries?

Ramu Prasad
Updated on 30-Jul-2019 22:30:20

189 Views

The following are some of the best JavaScript Libraries:jQueryjQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto – “Write less, do more”. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.MooToolsMooTools is an object-oriented, lightweight JavaScript framework. The full form of MooTools is My Object-Oriented Tools. It is released under the free, open-source MIT License. It is one of most popular JavaScript libraries. MooTools is a powerful, lightweight JavaScript library. It creates an easy interaction of JavaScript in web development. It can also do many ... Read More

How JavaScript was created?

Sravani S
Updated on 02-Jan-2020 08:00:13

98 Views

NCSA’s Mosaic was the first popular browser, which released in 1993. After a year, in 1994, Netscape was founded, which came with the web browser Netscape Navigator It gained a lot of popularity in the 1990s. Many Mosaic authors worked for Navigator.Considering the need for users and market trend, Netscape realized that the Web should be more dynamic. Netscape hired Brendan Eich in 1995In 1995, Netscape hired Brendan Eich to implement Scheme in the browser. But, Netscape collaborated with Sun to include Java, in Navigator. Netscape wanted to have a scripting language with a syntax similar to Java. Brendan Eich ... Read More

What is ECMAScript and how it is related to JavaScript?

V Jyothi
Updated on 02-Jan-2020 07:59:38

244 Views

JavaScript conforms to ECMAScript standard. JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language embedded in Netscape, Internet Explorer, and other web browsers.The ECMAScript Edition 5 standard was the first update to be released in over four years. JavaScript 2.0 conforms to Edition 5 of the ECMAScript standard, and the difference between the two is extremely minor.The 8th edition, known as ECMAScript 2017, came in June 2017.The ... Read More

What was the name of JavaScript when it was created?

Priya Pallavi
Updated on 02-Jan-2020 07:59:07

823 Views

JavaScript launched in May 1995 by Brendan Eich, who used to work at Netscape. Initially, it wasn’t called JavaScript; it was given the name Mocha.The name Mocha was chosen by Marc Andreessen, a Netscape founder. The name was changed to LiveScript in September 1995. In the same year, December, it received a trademark license from Sun and the name JavaScript came into the picture.The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.The ECMA-262 Specification defined a standard version of the core JavaScript language.JavaScript is a lightweight, interpreted programming language.Designed for creating network-centric ... Read More

How to check if a string has a certain piece of text in JavaScript?

Nikitha N
Updated on 12-Sep-2019 07:21:59

76 Views

The jQuery search() method is used to check whether a string contains a certain text in JavaScript.You can try to run the following code to check whether “Tutorialspoint: Free Video Tutorials” contains the “Free Video” text in JavaScript or not:           JavaScript String search() Method                        var re = "Free Video";          var str = "Tutorialspoint: Free Video Tutorials";          if ( str.search(re) == -1 ) {             document.write("Does not contain" );          } else {             document.write("Contains" );          }          

How to implement basic Animation in JavaScript?

Abhinanda Shri
Updated on 16-Jun-2020 06:25:09

82 Views

To implement basic Animation in JavaScript, use the DOM object properties and JavaScript. The following list contains different DOM methods.We are using the JavaScript function getElementById() to get a DOM object and then assigning it to a global variable imgObj.We have defined an initialization function init() to an initialize imgObj where we have to set its position and left attributes.We are calling an initialization function at the time of window load.Finally, we are calling moveRight() function to increase the left distance by 10 pixels. You could additionally set it to a negative value to move it to the left side.         ... Read More

How do I remove a particular element from an array in JavaScript

Ankitha Reddy
Updated on 30-Jul-2019 22:30:20

737 Views

To remove an element from an array, use the splice() method. JavaScript array splice() method changes the content of an array, adding new elements while removing old elements. The following are the parameters − index − Index at which to start changing the array. howMany − An integer indicating the number of old array elements to remove. If howMany is a 0, then no elements are removed. element1, ..., elementN − The elements adds to the array. If you don't specify any elements, splice simply removes the elements from the array. You can try to run the following ... Read More

Which one is the Python module to obfuscate javascript?

Rajendra Dharmkar
Updated on 12-Sep-2019 07:26:07

640 Views

You can use the jsmin module to minimize/obfuscate javascript code using Python. Install jsmin using:$ pip install jsminTo use jsmin in your python project to minimize a js file, say hello.js, you can use it as follows:>>> from jsmin import jsmin >>> with open('hello.js') as js_file: ...     minified = jsmin(js_file.read()) >>> print minifiedYou'll get the minified JS code printed to your shell. You can also use jsmin as a command line tool:$ python -m jsmin hello.jsYou can read more about jsmin on pypi docs: https://pypi.python.org/pypi/jsmin

Advertisements