Coder Social home page Coder Social logo

all-about-that-text's Introduction

All About That Text

Introduction

We'll be making an app that's all about that text. We've been making event listener functions that take in input in two ways: what was clicked, and what's the current state of our app. For this project. the focus will be looking at what was clicked, and what was typed into our input box.

Because we're all about that text, 'bout that text, no pictures.

Sorry about getting that stuck in your head!

Tools We'll Learn, Practice, And Begin To Master

  • Event listener functions.
  • Reading strings from input boxes.
  • String building and manipulation.
  • Keeping our back end and front end separate.
  • Function expressions.
  • Creating, appending, and removing elements.

Features Specifications

  • The user can click on any of the five buttons and get the appropriate result printed on the screen. (Feel free to run npm test to see the functions needed for each button if you haven't already finished that back-end portion.)
  • The result will be cleared and replaced by any further button clicks by the user.
  • The input box will be cleared of text as soon as a button is pushed.

Technical Guidelines

  • Every function should be a function expression in the form:
const add = function(x, y) {
  return x + y;
}
  • The back end and front end should be separate files. Make sure they're linked in your html, and in the right order. The names we've picked out our main.js for your front-end code and back-end.js for the logic functions, but feel free to rename them.

Tips

  • You can move your file from your Transmogrify solution straight to this repo, and name it back-end.js. If you name it something else, your npm test won't find it--unless you update the name of back-end.test.js to match.
  • Remember that the text in the input box is in the html node's .value, NOT .innerText.
  • And that it comes in as a string, never a number!
  • You'll need to populate the results ul with lis that you make and give the appropriate text to.
  • There are several different ways to clear the ul of its lis, but please do not simply cause the page to reload. That's cheating, and someday we'll make an app that would break if you do it, so... don't do it.
  • The same goes for clearing the input box, but remember that you can change any property's value, not just read it!

all-about-that-text's People

Contributors

busrasariguzel avatar abbreviatedman avatar

Watchers

James Cloos 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.