Комментарии:
Leave these js dates alone and use a library! Stop the madness
ОтветитьNever create a Date object using a string input. It's deprecated API and is unreliable because it behaves differently in each browser.
ОтветитьFireship: Watch me ending this package whole career
Package: am I a joke to you
Dopamine 🗿🔋
ОтветитьI just send a technical test using this api, from a video I just spot yesterday..... You are a true hero bro, thanks for everything!!
ОтветитьThese videos are so crazy useful.
ОтветитьSomething I miss from Powershell is how much is built in. $diff = ((Get-Date) - (Get-Date 4/18/1960)) returns an array of key:value pairs, one of which is TotalDays, so you can just Write-Host "$($diff.TotalDays) days ago". Because it's a scripting (JIT) language on top of the .NET CLR, the only downside is that everything takes like 10x as long to execute as Node Javascript. But gosh is it easy to write. And most of it can copy-paste into a C# class (strip the variables of their dollar signs) to compile for faster execution.
ОтветитьAny reason for starting a new channel?
ОтветитьThe problem is relative time per se :) From a UI perspective, what's supposed to be user-friendly in writing "78 weeks ago" instead of just a plain date remains a mystery to me.
Ответить😕 ƤRO𝓂O𝕤ᗰ
ОтветитьDidn't know this exists thanks
ОтветитьLike a rat waiting for a pellet I smashed da thumbs up. Now give me my JS fireship pellet o wisdom
ОтветитьDate-fns is a great option as well.
Ответить"real"ative?
ОтветитьI still find date-fns easier to read and use!
Ответитьhow did make vscode show a hint like on the right side?
ОтветитьI tried to use this to format dates according to timezone but could get the dates to match what moment already puts out
Ответитьuseful tip :)
ОтветитьWhat is the name of the VS Code extension that evaluates each line of code to see if it will run. I think Jeff is using it at the end of this video....???
ОтветитьI wonder we will overflow you?You just remind me that website
ОтветитьHey thanks for the great video. I speak Swahili language anyway :)
ОтветитьIf only time stops when we code.
ОтветитьDepamine given🔥. Kinda hopping you wont bring the for haters videos that wasn't cool.
Ответитьmy hero
ОтветитьI literally was dealing with this problem yesterday and instead looked up a barely working time since function on stackoverflow. THANKS!
ОтветитьCool man
ОтветитьWhat if it's one day ago-- will it say "one days ago"?
Ответитьhow do i create a sequence?
ОтветитьDamn. Nice job. I realy couldn't find a proper tutorial explaining everytNice tutorialng you needed clearly but then i found tNice tutorials treasure of a video.
ОтветитьMoment.js is good though
ОтветитьWhat extension is that? Showing the console log thingy? 😢
ОтветитьHow to display results/errors in real time next to the line like you do, is there vscode extension or it's your Firemagic trick?
ОтветитьWhich extension gives the console.log result inline the code?
ОтветитьJeff knows Swahili🔥😅
ОтветитьI feel like the Intl API will become a meme on this channel.
ОтветитьGreat 👍
Ответитьthat was so helpful...didnt know about that Intl api
ОтветитьWhat do you use to show the console logs beside the line of code?
ОтветитьI want to execute a code hasDateChanged(eg. previousDay != currentDay) only when the date has changed. But no matter what I do everytime the javascript code executes it gets reset and the if statement always return true. Can anyone help me with that?
ОтветитьPro Tip: Also add the "title" attribute in the html with your initial date
P.S. love your vids <3
Today I'm literally trying to build this feature and out of nowhere this video comes up 😭
ОтветитьWhen I added the GMS it softed completely different than yours. Yours softed more like a real app, wNice tutorialle mine softed very
ОтветитьI would like to ask you a question please?
ОтветитьCan someone please tell me how he gets the output directly instead of using the CLI? And what are the red/green squares on the left?
ОтветитьI'm already addicted to this channel
ОтветитьWhat VSCode plug-in are you using for inline REPL evaluation?
ОтветитьAre these warnings that come from the side of the code an extension?
Ответить