Ejecutar el fragmento de código
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
Roaming Coder
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
#code snippet
a=int(input('number'))
b,c=0,0
for i in range(1,a+1):
if i%2==0:
b+=i
else:
c+=i
d=b+c
print(b,c,d)
___________________________________________________________________________
var vid = document.getElementById('player_html5_api');
vid.muted = true;
//Snippet for testing output in the front end, using material ui
//Place your state in place of filters
<Box>
<Card>
<CardHeader title="Output" />
<CardContent>
<pre style={{ backgroundColor: "white" }}>{JSON.stringify(filters, null, 2)}</pre>
</CardContent>
</Card>
</Box>