Mkotla has Published 97 Articles

Why I got output 0(Zero) on converting date like ‘1965-05-15’ to TIMESTAMP?

mkotla

mkotla

Updated on 28-Jan-2020 10:50:53

350 Views

As we know that with the help of MySQL UNIX_TIMESTAMP function, we can produce the number of seconds from given date/DateTime. But when we try to convert a date like ‘1965-05-15’ it would give 0(Zero) as output because the range of TIMESTAMP is between ‘1970-01-01 00:00:01’ to ‘2038-01-19 08:44:07’. Hence, ... Read More

How to take user input using HTML forms?

mkotla

mkotla

Updated on 10-Jan-2020 11:12:57

18K+ Views

Using HTML forms, you can easily take user input. The tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc.Let’s learn about the tag, which helps you to take user input using ... Read More

What is the difference between an acronym and abbr tags?

mkotla

mkotla

Updated on 10-Jan-2020 10:51:46

657 Views

In layman language, an acronym is a word formed by taking letters of each word in a phrase to form an abbreviation. Acronyms are a subset of abbreviations i.e. abbreviation is a shortened form of a word.The tag isn’t supported in HTML5 and is deprecated now. Do not use. ... Read More

What is the difference between closure and nested functions in JavaScript?

mkotla

mkotla

Updated on 09-Jan-2020 06:52:53

1K+ Views

JavaScript ClosuresIn JavaScript, all functions work like closures. A closure is a function, which uses the scope in which it was declared when invoked. It is not the scope in which it was invoked.Here’s an exampleLive Demo           JavaScriptClosures             ... Read More

How to define functions inside a function body in JavaScript?

mkotla

mkotla

Updated on 07-Jan-2020 08:06:24

178 Views

To achieve what you want, use JavaScript Closures. A closure is a function, which uses the scope in which it was declared when invoked. It is not the scope in which it was invoked.ExampleLet’s take your example and this is how you can achieve your task. Here, innerDisplay() is a ... Read More

How to redirect if JavaScript is not enabled in a browser?

mkotla

mkotla

Updated on 03-Jan-2020 06:38:41

898 Views

To redirect if JavaScript is not enabled in the web browser, add a script to the tag. Let us say you need to redirect to index.php if JavaScript is not enabled. ExampleHere’s how you can do this:           HTML noscript Tag                                                        html{display:none;}          

What are JavaScript language resources?

mkotla

mkotla

Updated on 02-Jan-2020 08:27:18

213 Views

JavaScript resources include resources for the scripting languages standard ECMAScript.This is standardized in the ECMA-262 and ECMA-402 specifications.Here is the ECMAScript standard for the current editions:ECMA-2629th Edition - This is ECMAScript 2018 Language Specification.ECMA-402 5th Edition - This is ECMAScript 2018 Internationalization API Specification.Here are the ECMAScript standards for historical ... Read More

How to use the submit button in HTML forms?

mkotla

mkotla

Updated on 04-Oct-2019 08:31:47

4K+ Views

Submit button automatically submits a form on click. Using HTML forms, you can easily take user input. The tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc.Let’s learn about how to use ... Read More

Should I include language="javascript" in my SCRIPT tags?

mkotla

mkotla

Updated on 30-Sep-2019 07:42:16

490 Views

The language attribute in JavaScript is optional since the introduction of HTML5 brought some new improvements. JavaScript became the default language for HTML5 and modern browsers. Therefore, now adding javascript isn’t required in tag.This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although ... Read More

What does the leading semicolon in JavaScript libraries do?

mkotla

mkotla

Updated on 30-Sep-2019 06:59:03

294 Views

A function in JavaScript looks like the following:(function(){...})()A library in JavaScript shows a function, which begins with a semicolon, for example:;(function ) { }The semicolon allows to safely concatenate several JS files into one. This is to serve it faster as one HTTP request.A leading semicolon can also be to ... Read More

Advertisements