Giter Club home page Giter Club logo

textconvert's Introduction

Who am I?

My name is Nicolas Alkhoury, I am a software developer with experience and great passion. I started teaching myself by making a Discord bot, then decided that wasn't enough for me. I studied Web Development at Lighthouse Labs. I hope the following information will help you get to know more about my skills.

Currently working on

  • textConvert: Public library to convert text into many conventions and formats.
  • RoK Commander Discord Bot: Private

Currently learning

How to reach me:

  • Preferred contact platform is Discord or LinkedIn (Click here or on my name above!).

Twitter Discord Instagram

Languages

HTML5 Markdown JavaScript TypeScript CSS3 Ruby

Frameworks

NodeJS jQuery Express.js Rails React NPM Yarn SASS Bootstrap Postgres Socket.io Webpack ESLint Trello Vagrant

Design

Figma Blender Canva

IDEs

CodePen IntelliJ IDEA Sublime Text Vim Visual Studio Code Visual Studio Vim

Version Control

Git GitHub GitLab

GitHub Stats

Nico's GitHub stats My GitHub Language Stats

textconvert's People

Contributors

dependabot[bot] avatar kuba429 avatar monsieur-nico avatar

Watchers

 avatar

Forkers

kuba429

textconvert's Issues

Create a string reverse function

Reverse Function

Create a function to reverse a string here with the name reverse.ts.

Functionality Steps

The function's job is to take in a single string argument reverse it and return it as a string.

"hello world".split(" ");
// Returns => ["hello", "world"]
["hello", "world"].reverse();
// Returns => ["world", "hello"]
["hello", "world"].map(word, () => {
  return word.split("").reverse();
  // Returns => [ [ 'd', 'l', 'r', 'o', 'w' ], [ 'o', 'l', 'l', 'e', 'h' ] ]
});
const wordsArray = ["hello", "world"].map(word, () => {
  return word.split("").reverse().join("");
  // Returns => [ 'dlrow', 'olleh' ]
});

return wordsArray.join(" ");
// Returns => "dlrow olleh"

Best Practices

  • Made tests before writing the function.
  • Followed naming convention (camelCase).
  • Followed recommended style (2 space indentation).
  • Didn't nest any loops.
  • All tests are passing after implementing the feature.

Please keep in mind, the words from the argument might have not only spaces but punctuations too.

Feel free to use the following regex. You can add more regex but don't edit the existing ones.

upperCase: /[A-Z]/g,
upperCaseKeepLetter: /(?=[A-Z])/g,
lowerCase: /[a-z]/g,
lowerUpperCase: /[A-Za-z]/g,
nonAlphabetic: /[^A-Za-z]/g,
nonAlphaTest: /[^A-Za-z]/,
punctuation: /[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g,

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.