A Little JavaScript Lesson
A conversation between Robert and I this afternoon…
if (‘designer’ != ‘google’) {
window.location = ‘http://google.com’;
}
else {
answer = question + designer;
designer += frustration;
}
Or correspondingly,
if (google_search_easiness > web_designer_willingness_to_answer) {
location.href = ‘http://google.com’;
}
else {
question = prompt(‘What’s your question’);
}
