S
S
SEACRE5T2020-10-09 14:37:42
Django
SEACRE5T, 2020-10-09 14:37:42

How to implicitly convert to another data type?

Is it even possible to convert to another type through a variable and not the content?

const i = "2";
const n = "2a";
Number(i);
NaN(n);

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kazmiruk, 2016-02-04
@kazmiruk

1.8 is now in production, we have already migrated to 1.9, we are testing, so far there are no complaints. If something didn’t work for people, then they simply don’t know how to cook it. Junga developers are very responsible for releases, they went through all the migrations from version 1.6 to 1.9 - no problems. Read the changelog and changed the places affected in the release.

U
un1t, 2016-02-04
@un1t

At 1.9 for a long time, everything is stable.
In dzhang problems with stability of releases never were. Problems can only be with third-party applications that do not add support for a new release on time.

A
Adamos, 2020-10-09
@SEACRE5T

Number(i * 1) === NaN('a' + n) === true
True, the first - only under the condition NaN(i) === false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question