What is the difference

between ___ and ___ in the front-end development?

CSS

:activevs:focus

border-boxvscontent-box

bordervsoutline

display: nonevs[hidden]

display: nonevsopacity: 0vsvisibility: hidden

marginvspadding

NormalizevsReset CSS

style="width: ___"vswidth="___"

word-break: break-allvsword-wrap: break-word

DOM

addEventListener() functionvson property

clientHeightvsoffsetHeightvsscrollHeight

clientYvspageY

currentTargetvstarget

DOMContentLoadedvsload

event bubblingvscapturing

event.preventDefaultvsreturn false

keyvskeyCodevswhich

keydownvskeypressvskeyup

mouseentervsmouseover

naturalWidthvswidth

nodeNamevstagName

parentElementvsparentNode

stopImmediatePropagationvsstopPropagation

HTML

altvstitle

<b>, <i>vs<strong>, <em>

<button>vs<input type="button" />

classvsid

<div>vs<section>

ElementvsNode

script asyncvsscript defer

JavaScript

applyvscall

argumentvsparameter

array = []vsarray.length = 0

arrowvsregular function

concatvspush

constvsletvsvar

delete obj.propertyvsobj.property = undefined

double quotesvssingle quote

encodeURIvsencodeURIComponent

==vs===

for ... invsfor ... of

function declarationvsfunction expression

hasOwnPropertyvsin

instanceofvstypeof

MapvsWeakMap

method in class constructorvsprototype

nullvsundefined

Number()vsparseInt()

Object.getOwnPropertyNames()vsObject.keys()

Object.is()vs===

object.propertyvsobject['property']

ObjectvsMap

++valuevsvalue++

slicevssplice

string.charAt(i)vsstring[i]

substrvssubstring

undefinedvsvoid

variable === undefinedvstypeof variable === "undefined"

TypeScript

const enumvsenum

constvsreadonly

*.d.tsvs*.ts

functionvsproperty in interface

interfacevstype

literal union typevsstring enums

stringvsString

React

<>vsReact.Fragment