Skip to content

Instantly share code, notes, and snippets.

View sfwnisme's full-sized avatar
๐Ÿ‰
ุฃูŽู„ูŽุง ุจูุฐููƒู’ุฑู ุงู„ู„ู‘ูŽู‡ู ุชูŽุทู’ู…ูŽุฆูู†ู‘ู ุงู„ู’ู‚ูู„ููˆุจู

Safwan sfwnisme

๐Ÿ‰
ุฃูŽู„ูŽุง ุจูุฐููƒู’ุฑู ุงู„ู„ู‘ูŽู‡ู ุชูŽุทู’ู…ูŽุฆูู†ู‘ู ุงู„ู’ู‚ูู„ููˆุจู
View GitHub Profile
/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code & run
*/
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
@sfwnisme
sfwnisme / Javascript_toNumber.md
Created October 4, 2022 12:25 — forked from quant61/Javascript_toNumber.md
conversion to number in javascript

Some notes about conversion to number in javascript

javascript has lots of methods to convert any value to number

  • all methods could be divided into 2 groups: string and native methods
    • String methods are parseInt and parseFloat
    • Native mathods are Number and Math methods

all native methods behave the same way, sometimes with additional transform