Giter Site home page Giter Site logo

samiurrahmanmukul / javascript-methods-cheatsheet Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 346 KB

A comprehensive cheat sheet for JavaScript methods across different data types. This repository provides quick references for string, array, number, object and date methods in JavaScript. Each cheat sheet includes method names, code examples, expected results, and return types, making it a handy resource for developers seeking quick guidance.

Home Page: https://github.com/SamiurRahmanMukul/JavaScript-Methods-CheatSheet

License: Apache License 2.0

cheatsheet javascript javascript-array javascript-array-methods javascript-cheatsheet javascript-date javascript-methods javascript-number javascript-object javascript-object-methods

javascript-methods-cheatsheet's Introduction

Facebook Instagram Twitter LinkedIn Github

CheatSheet Banner

JavaScript Fundamentals

JavaScript Methods CheatSheet

Strings

  • charAt(index): Returns the character at the specified index.
  • concat(...strings): Combines two or more strings.
  • toUpperCase(): Converts a string to uppercase.
  • toLowerCase(): Converts a string to lowercase.
  • trim(): Removes whitespace from both ends of a string.
  • Learn more ๐Ÿš€

Arrays

  • push(...elements): Adds one or more elements to the end of an array.
  • pop(): Removes the last element from an array.
  • join(separator): Joins all elements of an array into a string.
  • slice(start, end): Extracts a portion of an array.
  • Learn more ๐Ÿš€

Numbers

  • toFixed(digits): Formats a number using fixed-point notation.
  • toPrecision(precision): Formats a number to a specified precision.
  • parseInt(string, radix): Parses a string and returns an integer.
  • Learn more ๐Ÿš€

Objects

  • keys(): Returns an array of a given object's property names.
  • values(): Returns an array of a given object's property values.
  • hasOwnProperty(prop): Returns a boolean indicating whether the object has the specified property.
  • Learn more ๐Ÿš€

Dates

  • getDate(): Returns the day of the month.
  • getMonth(): Returns the month (0-11).
  • getFullYear(): Returns the year.
  • toLocaleDateString(): Returns a string representing the date.
  • Learn more ๐Ÿš€

HAPPY CODING ๐Ÿ˜„ & I ๐Ÿ’– PROGRAMMING

javascript-methods-cheatsheet's People

Contributors

samiur-siliconorchard avatar samiurrahmanmukul avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.