MOTOSHARE πŸš—πŸοΈ
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
πŸš€ Everyone wins.

Start Your Journey with Motoshare

How does the JavaScript Promise work?

Promise A Promise is an object representing the eventual completion or failure of an asynchronous operation. A JavaScript Promise object contains both the producing code and calls to the consuming code. It can be used to deal with Asynchronous operations in JavaScript. Promise State:- Pending – Initial State, Not yet Fulfilled or RejectedFulfilled/Resolved – Promise … Read more

Accessing Form Fields in JavaScript

Accessing Form JavaScript provides various ways of accessing form:- document.forms[index_number] – It returns collection of form in the documents. document.forms[β€œname_attribute_value”] – we can use name attribute of the form. document.name_attribute_value – we can use name attribute of the form with dot as well. getElementById(β€œID”) – If form as an unique id we can use it. … Read more

How to use Form Handling in javascript

Form Handling JavaScript provides access to the forms within an HTML document through the Form object known as HTMLFormElement in the DOM. Which is a child of the Document Object. Properties Properties Value Description accept-charset UTF-8 Specifies the charset used in the submitted form (default: the page charset). action URL Contains a URL that defines … Read more

What is the difference between a timeout and an interval in Javascript?

setTimeout( ) Method The setTimeout() method sets a timer which executes a function or specified piece of code once after the timer expires. The function is only executed once. It returns a positive integer value which identifies the timer created by the call to setTimeout(); this value can be passed to clearTimeout() to cancel the … Read more

Moving Windows in JavaScript

Moving Windows moveBy ( ) – This method moves the current window by a specified amount of pixels. Syntax:- window.moveBy(horizontalPixels, verticalPixels); Where, window – It is the name of the window to move or is called just window if it is the main window. horizontalPixels – It is the number of horizontal pixels to move … Read more

What is a window object in JavaScript? What are its properties?

Window Object Window object represents the browser’s window or potentially frame, that a document is displayed in. As long as a browser window is open, even if no document is loaded in the window, the window object is defined in the current model in memory. All global JavaScript variables, functions and objects automatically become members … Read more

Manipulation Attributes in JavaScript

Attributes The attributes property returns a live collection of all attribute nodes registered to the specified node. It is a read-only property. Syntax:-Element.attributes[index/key] Attr Object Properties name (do not use nodeName) value (do not use nodeValue or textContent or appendChild() or insertBefore( ) or removeChild( ) or replaceChild( ) these all are deprecated for attr … Read more

How is Node.js created with JavaScript?

Creating Nodes createElement(element_name) createTextNode(string) createComment(string) createDocumentFragment( ) Create Element Node The createElement(element_name) method is used to create the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn’t recognized. It returns the New Element. Syntax:-createElement(element_name) Create Text Node The createTextNode(string) method is used to create the Text Node with the specified text (string). Syntax:-createTextNode(string) … Read more

How to Use CSS Selector in javascript?

querySelector(β€œCSS Selector”) The method querySelector() returns the first Element match of the specified selector or group of selectors. If no matches are found, null is returned. querySelectorAll(β€œCSS Selector”) The method querySelectorAll() returns a static (not live) NodeList representing a list of the document’s elements that match the specified group of selectors. The NodeList object represents … Read more