Purvi Barot

+ Follow
since Apr 16, 2019
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Purvi Barot

I am just wondered how it does not work in your case :

here it works perfectly for me, and for little alignment issue i just remove the align of the check box

here is the working example:


var and let are both used for function declaration in javascript but the difference between them is that var is function scoped and let is block scoped.

Example of var:

Example of let:

When comparing MongoDB vs Google Firebase, the Slant community recommends MongoDB for most people. In the question“What are the best non-relational databases for web apps?” MongoDB is ranked 1st while Google Firebase is ranked 6th. The most important reason people chose MongoDB is:

MongoDB has powerful sharding and scaling capabilities for when the data stored in the database gets so large that a single machine may not be able to store all of it. Sharding solves this problem through horizontal scaling. Mongo gives developers the ability to easily and painlessly add or remove as many machines as needed.

Ajax (Asynchronous JavaScript and XML) is a method of building interactive applications for the Web that process user requests immediately. Ajax combines several programming tools including JavaScript, dynamic HTML (DHTML), Extensible Markup Language (XML), cascading style sheets (CSS), the Document Object Model (DOM), and the Microsoft object, XMLHttpRequest.

Ajax allows content on Web pages to update immediately when a user performs an action, unlike an HTTP request, during which users must wait for a whole new page to load. For example, a weather forecasting site could display local conditions on one side of the page without delay after a user types in a zip code.

hey ! here you did not mention your question but if you are asking about method for compare two string in javascript then there is the localCompare() method.

The localeCompare() method compares two strings in the current locale.
The localeCompare() method returns a number indicating whether the string comes before, after or is equal as the compareString in sort order.


hey here i'm sending you one link which list java web-service books and suggest you to refer best book for java web-service.


2 months ago

The substring() method extracts the characters from a string, between two specified indices, and returns the new sub string.

This method extracts the characters in a string between "start" and "end", not including "end" itself.

So, when you do something like it starts counting from 0 till 4 not 5 cause it not includes "end".

counting is like : h -> 0 , e -> 1, l -> 2, l -> 3, o -> 4 , so it will pick the word after the character "o" and, though there are no any other word or character after "hello" it returns nothing or 0.

2 months ago
as you shown the

1.<form action ="url">

is called An absolute URL which normally indicates current url and

2.<form action = "/url">

is called  A relative URL which indicates the root of the application url.
hello !

you can bind or we can say connect your javascript in html using <script> and </script> tags.

In HTML, JavaScript code must be inserted between <script type="text/javascript"> and </script> tags.
note: here type attribute is not mandatory.

You can place any number of scripts in an HTML document.

Scripts can be placed in the <body>, or in the <head> section of an HTML page, or in both.

Scripts can also be placed in external files:

External scripts are practical when the same code is used in many different web pages.

JavaScript files have the file extension .js.

To use an external script, put the name of the script file in the src (source) attribute of a <script> tag:

<script src="myScript.js"></script>

You can place an external script reference in <head> or <body> as you like.

Thank you !
Objects:  If we consider the real-world, we can find many objects around us, cars, dogs, humans, etc. All these objects have a state and a behavior.

If we consider a dog, then its state is - name, breed, color, and the behavior is - barking, wagging the tail, running.

If you compare the software object with a real-world object, they have very similar characteristics.

Software objects also have a state and a behavior. A software object's state is stored in fields and behavior is shown via methods.

So in software development, methods operate on the internal state of an object and the object-to-object communication is done via methods.

An object is created from a class. In Java, the new keyword is used to create new objects.

There are three steps when creating an object from a class −

Declaration − A variable declaration with a variable name with an object type.

Instantiation − The 'new' keyword is used to create the object.

Initialization − The 'new' keyword is followed by a call to a constructor. This call initializes the new object.


3 months ago