Vanithasree has Published 85 Articles

What is the difference between UNIX TIMESTAMPS and MySQL TIMESTAMPS?

vanithasree

vanithasree

Updated on 20-Jun-2020 06:29:55

1K+ Views

In MySQL, UNIX TIMESTAMPS are stored as 32-bit integers. On the other hand MySQL TIMESTAMPS are also stored in similar manner but represented in readable YYYY-MM-DD HH:MM:SS format.Examplemysql> Select UNIX_TIMESTAMP('2017-09-25 02:05:45') AS 'UNIXTIMESTAMP VALUE'; +---------------------+ | UNIXTIMESTAMP VALUE | +---------------------+ | 1506285345          | +---------------------+ 1 row ... Read More

What is onkeyup event in JavaScript?

vanithasree

vanithasree

Updated on 19-Jun-2020 11:18:47

307 Views

The onkeyup event triggers when a key is released.ExampleYou can try to run the following code to learn how to work with onkeyup event in JavaScript −                                         Enter subject below in upper case and see what happpens.          

How to calculate the ln of a given number in JavaScript?

vanithasree

vanithasree

Updated on 19-Jun-2020 07:31:41

2K+ Views

To calculate the ln of a given number, use the Math.log() method in JavaScript. This method returns the natural logarithm (base E) of a number. If the value of a number is negative, the return value is always NaN.ExampleYou can try to run the following code to get the ln ... Read More

Method of Object class in Java

vanithasree

vanithasree

Updated on 17-Jun-2020 08:02:02

2K+ Views

Following are various methods of Object class −protected Object clone() - Used to create and return a copy of this object. boolean equals(Object obj) - Used to indicate whether some other object is "equal to" this one.protected void finalize() - garbage collector calls this method on an object when it determines ... Read More

What is the best way to convert a number to a string in JavaScript?

vanithasree

vanithasree

Updated on 17-Jun-2020 06:37:14

139 Views

The best way to convert a number to a string is using the toString() method, with different bases. The method has an optional parameter “radix”, which is used as a base (2, 8, 16) for a numeric value.ExampleYou can try to run the following code to convert a number to ... Read More

What is “Parameters without defaults after default parameters in JavaScript”

vanithasree

vanithasree

Updated on 16-Jun-2020 06:26:44

95 Views

The default parameter came to handle function parameters with ease. Default parameters allow you to initialize formal parameters with default values. This is possible only if no value or undefined is passed. With ES6, you can easily set default parameters. Let’s see an exampleExampleLive Demo           ... Read More

How do we specify the target for where to open the linked document in HTML?

vanithasree

vanithasree

Updated on 01-Jun-2020 09:26:06

109 Views

Use the target attribute to specify the target for where to open the linked document in HTML. Here are the values of the target attribute −AttributeDescription_blankOpens the linked page in a new tab.selfOpens the linked page in the current tab.parentOpens the linked page in a parent frame.topOpens the linked page in the ... Read More

How do we include an inline sub window in HTML?

vanithasree

vanithasree

Updated on 29-May-2020 23:06:51

321 Views

Inline sub window is an iframe and you can include it using the tag.The HTML tag supports the following additional attributes −AttributeValueDescriptionalignleftrighttopmiddlebottomSpecifies how to align the iframe according to the surrounding text.frameborder10Specifies whether or not to display border around the frame.heightpixelsSpecifies the height of the inline frame.longdescURLA URL ... Read More

How do I identify if a string is a number in C#?

vanithasree

vanithasree

Updated on 02-Apr-2020 11:06:44

242 Views

Let us say our string is −string str = "3456";Now, to check whether the entered string is a number or not −str.All(c => char.IsDigit(c))The above returns true if the string is a number, else false.Here is the complete code −Example Live Demousing System; using System.Linq; namespace Demo {    public ... Read More

What do the =+ and += do in Python?

vanithasree

vanithasree

Updated on 05-Mar-2020 07:23:14

70 Views

The += operator is syntactic sugar for object.__iadd__() function. From the python docs:These methods are called to implement the augmented arithmetic assignments (+=, -=, *=, @=, /=, //=, %=, **=, =, &=, ^=, |=). These methods should attempt to do the operation in-place (modifying self) and return the result (which ... Read More

Advertisements