Code for controlling two led's

<!doctype html>

Bolt IoT Platform ON OFF ON OFF i have used pin no 2 you can use any pin as per our convinice

Yes you can use 2 pins