Posts with #301DaysofCode

#301DaysofCode

Public posts on X that use #301DaysofCode.

Related hashtags

  1. Samantha Ming@samantha_ming
    window.location Cheatsheet 🔖 Looking for a site's URL information, then the "window.location" object is for you!Use its properties to get details on the current page address or use its methods to do some page redirect or refresh 💫 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    12189829
  2. Samantha Ming@samantha_ming
    Style the Cursor Color in CSS 🤩 Use the `caret-color` to change the color of the cursor (caret). It's the blinking cursor when you click on the <input> or <textarea>. Now you can change the color to match the theme of your website 👍 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    153801.5K
  3. Samantha Ming@samantha_ming
    Create a downloadable link using HTML5 `download` attribute 🤩 Turn your <a href> into a download link instead. The downloaded file will be the same as the original filename OR you can pass in a value to set a custom name 👏 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    12141466
  4. Samantha Ming@samantha_ming
    Number Truncation ✂️ Use "Math.trunc()" to truncate a floating point number and return its integer part. This function doesn't do any rounding, it simply removes all the digits following the decimal. Now you have a whole number, yay 🎊 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    660236
  5. Samantha Ming@samantha_ming
    HTML <mark> tag 📝 Need to emphasize some text by making it appear highlighted? Use the <mark> tag! I've always just styled a <span> tag, not realizing this more semantic option existed. HTML5 is filled with all sort of goodies 😆 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    183991.9K
  6. Samantha Ming@samantha_ming
    Quick Debug with ”||” 🏆 Always a pain to debug 1-line arrow function with a console.log. Why? b/c we need to convert it to a multi-line first. No more! Just use "||" before your expression. It outputs both your console.log & expression #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    12114393
  7. Samantha Ming@samantha_ming
    Reading code is tough, so don’t make it more complicated with names that others have to guess. Often, it’s better to spell out the entirety of the word so everyone can understand 👍 What pitfalls do you avoid when naming variables? #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    23116334
  8. Samantha Ming@samantha_ming
    Better Boolean Variable Names 👏 Coming up with good variable names can be a challenge. For boolean values, you can follow this convention. Prefix it with `is`, `has`, or `can`. Just by reading the name, you'll know it's a boolean 👍 #100DaysOfCode #CodeNewbie #301DaysOfCode
    Download
    356332.1K
  9. Show more posts