Run code snippet
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
Run code snippet
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
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)
___________________________________________________________________________
useful javascript code snippet for console
var vid = document.getElementById('player_html5_api');
vid.muted = true;
snppet for seeing output on screen
//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>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us