Giter VIP home page Giter VIP logo

Hi there πŸ‘‹


Hi there πŸ‘‹ This is Sohad Qtaitat

Master Computer Science | Full Stack Software Developer | I enjoy learning new things


  • πŸ“« How to reach me: ...

Β Β Β Β Β Β Β Β Β Β Β Β 



sohad qtaitat's Projects

0xdeca10b icon 0xdeca10b

Decentralized & Collaborative AI on Blockchain

apparatus icon apparatus

A graphical security analysis tool for IoT networks

bus-mall2 icon bus-mall2

New Repo for bus mall because problem in vs

cipher icon cipher

Practice writing functions for encoding a sentence from your user, as if you wanted to keep someone from reading it. To complete this exercise review previous lessons and the JavaScript methods we've covered thus far. Try experimenting with Regular Expressions (introduced at the bottom of this lesson!) Create a JavaScript file and an HTML file in Atom for this project so that you can load your JavaScript in the browser. Start by prompting your user to enter a sentence. Then, store the sentence in a variable and print it to the console. Next, create a function that will take the first and last letter of the sentence, capitalize them, and return this as a new string. Create another function that will reverse the order of these two letters and return the result. Create a third function that calls the other two functions you've just created. For example, if I enter the sentence "I am a sentence", it should enter your first function (which should output "IE"), then call your second function, passing in the output value from the previous. It would return "EI" to me. Add code to your third function to concatenate the new two-letter string together with the original phrase. It should add the two-letter string at the end, forming the final result "I am a sentenceEI." Create a fourth function to count the number of letters in the original sentence, divide it by two (rounding down if necessary), and output the letter at this index. Concatenate this letter at the beginning of the original sentence. For example, if "I am a sentence" is my original input, and it has 15 total characters in it. If I divide this by 2, I get 7.5, which rounds down to 7. The letter at the 7th position in the sentence is "s". So my final result is "sI am a sentenceEI". Bonus: Take the final result and reverse it: "IEecnetnes a ma ls". Use jQuery to create two clickable images or pieces of text in your HTML page. When you click on the left one, it should show you the original sentence. If you click the other one, it should hide the original sentence and show the encoded one. Use Bootstrap to organize and style your page.

clone icon clone

Hello , these describe what i learn today

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.