What is the difference between ˍˍˍ and ˍˍˍ in the front-end development?
Star me on GitHub ● 1316★
word-break: break-all vs word-wrap: break-word
string vs String
:active vs :focus
apply vs call
addEventListener() function vs on property
alt vs title
clientHeight vs offsetHeight vs scrollHeight
array = [] vs array.length = 0
argument vs parameter
border vs outline
arrow vs regular function
border-box vs content-box
<button> vs <input type="button" />
<b>, <i> vs <strong>, <em>
class vs id
const enum vs enum
currentTarget vs target
concat vs push
const vs let vs var
*.d.ts vs *.ts
delete obj.property vs obj.property = undefined
display: none vs [hidden]
const vs readonly
clientY vs pageY
DOMContentLoaded vs load
encodeURI vs encodeURIComponent
== vs ===
event.preventDefault vs return false
for ... in vs for ... of
event bubbling vs capturing
<div> vs <section>
function vs property in interface
display: none vs opacity: 0 vs visibility: hidden
function declaration vs function expression
hasOwnProperty vs in
double quotes vs single quote
instanceof vs typeof
literal union type vs string enums
Element vs Node
key vs keyCode vs which
Map vs WeakMap
margin vs padding
mouseenter vs mouseover
method in class constructor vs prototype
naturalWidth vs width
keydown vs keypress vs keyup
Normalize vs Reset CSS
Object.getOwnPropertyNames() vs Object.keys()
nodeName vs tagName
Number() vs parseInt()
interface vs type
Object.is() vs ===
object.property vs object['property']
++value vs value++
Object vs Map
parentElement vs parentNode
null vs undefined
slice vs splice
<> vs React.Fragment
stopImmediatePropagation vs stopPropagation
string.charAt(i) vs string[i]
style="width: ___" vs width="___"
undefined vs void
substr vs substring
variable === undefined vs typeof variable === "undefined"
script async vs script defer
Follow me on
Twitter
and
GitHub
to get more useful contents.