Error Message "lvalue required as left operand of assignment"

I am super new to the whole coding scene and wanted some help. I have looked up a lot about this error message but I couldn't get anything to work while troubleshooting.

my code is the following:

define trigePin 9

define echooPin 10

void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(trigePin = OUTPUT); pinMode(echooPin = INPUT);

}

void loop() { // put your main code here, to run repeatedly: digitalWrite (trigePin, LOW); delayMicroseconds(5);

digitalWrite (trigePin, HIGH); delayMicroseconds(10); digitalWrite (trigePin, LOW);

duration = pulseIn (echooPin, HIGH); distance = duation/58.2;

Serial.print ("DISTANCE: "); Serial.print (distance); }

It is giving me this error on this: #define echooPin 10

Any suggestions on how to get better and fix this?? Thank you :)

pinMode(trigePin = OUTPUT);
    pinMode(echooPin = INPUT);

Look up the syntax for the pinMode function in the language reference.

Read the how to use this forum-please read stickies to see how to properly post code.

duration = pulseIn (echooPin, HIGH);
distance = duation/58.2;

The duration and distance variables are not declared anywhere and duation != duration Maybe something like this?

unsigned long duration = pulseIn (echooPin, HIGH);
float distance = duration/58.2;

Thank you a ton! I hadn't ever used that reference, but that helps a lot!