Notice: file_put_contents(): Write of 3039 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50

Warning: file_put_contents(): Only 12288 of 15327 bytes written, possibly out of free disk space in /var/www/tgoop/post.php on line 50
Web Devs@fullStackDevs P.542
FULLSTACKDEVS Telegram 542
#js_trick
#js

توی جاوا اسکریپت اگر قسمت صحیح یه عدد رو خواستین میتونین قبلش دوتا کاراکتر تیلدا (~) بذارید
console.log(~~4.131839) // 4
console.log(~~-3.825682) // -3

شاید بگین خب متد Math.floor هم عدد صحیح بر میگردونه ولی رند میکنه :

Math.floor(-3.825682)
Output: -4

▫️Happy Js Coding😉

@FullStackDevs
👍1



tgoop.com/fullStackDevs/542
Create:
Last Update:

#js_trick
#js

توی جاوا اسکریپت اگر قسمت صحیح یه عدد رو خواستین میتونین قبلش دوتا کاراکتر تیلدا (~) بذارید

console.log(~~4.131839) // 4
console.log(~~-3.825682) // -3

شاید بگین خب متد Math.floor هم عدد صحیح بر میگردونه ولی رند میکنه :

Math.floor(-3.825682)
Output: -4

▫️Happy Js Coding😉

@FullStackDevs

BY Web Devs


Share with your friend now:
tgoop.com/fullStackDevs/542

View MORE
Open in Telegram


Telegram News

Date: |

Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. With Bitcoin down 30% in the past week, some crypto traders have taken to Telegram to “voice” their feelings. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. A vandalised bank during the 2019 protest. File photo: May James/HKFP. Content is editable within two days of publishing
from us


Telegram Web Devs
FROM American