Multiplicar cadena de letras


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Cómo Eliminar espacios en blanco con método remove()

<Below this line, add a link to the EXACT exercise that you are stuck at.>
</www.codecademy.com/courses/learn-javascript-introduction/lessons/introduction-to-javascript/exercises/built-in-methods?action=lesson_resume&course_redirect=introduction-to-javascript to the right of this box. That is how your post will look to everyone else.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
/home/ccuser/workspace/learn-javascript-intro-javascript-built-in-methods-v2/app.js:5
console.log(’ Remove whitespace ').remove ());
^
SyntaxError: Unexpected token )
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

```// Log Codecademy in all uppercase letters console.log('Codeacademy').toUperCase());

// Use a string method to log the following statment without whitespace at the beginning and end of it.
console.log(’ Remove whitespace ').remove ());

Replace this line with your code.

<do not remove the three backticks above>

#2

Everything should be inside the argument list for console.log().

The method to use is .trim().

console.log('    string expression    '.method());

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.