Posts by Guilherme Arruda • 53 points
3 posts
-
-1
votes1
answer37
viewsQ: Post a preset phrase on Twitter
const frase = 'Olá Mundo!' <a href="https://twitter.com/compose/tweet" target='_blank'> <button>Twitter</button> The link to the tag <a> redirects to the Twitter page already…
-
1
votes1
answer48
viewsQ: What is "..." in Javascript?
I am studying some algorithms in Javascript, but I am doubtful in the following code: const newArray = [...arr2]; arr2 is any array composed of numbers, for example, arr2 = [1, 2, 3]. I’d like to…
javascriptasked Guilherme Arruda 53 -
3
votes5
answers145
viewsQ: Check if a string is composed only of '0' and '1'
I want to check, for example, if the string '01001011' is composed only of '0' and '1'. I’m creating an html learning project to convert binaries to decimal, and I want to create a function that…